Commit 03ea888
fix: Handle empty message content for suggestion threads (#1265)
* fix: handle empty message content for thread titles
Ensures a fallback thread title is provided when the original message content is empty.
The thread title will now default to the message author's name in such cases,
preventing empty or uninformative thread titles.
Co-authored-by: billpapat <[email protected]>
Co-authored-by: Chris Sdogkos <[email protected]>
Mentored-by: Chris Sdogkos <[email protected]>
* style: apply gradle task `spotlessApply`
CI/CD is failing without this commit.
Co-authored-by: billpapat <[email protected]>
Co-authored-by: Chris Sdogkos <[email protected]>
Mentored-by: Chris Sdogkos <[email protected]>
* fix: thread titles #1265
1) Created channels without title will default to "username's suggestions"
2) Change String threadTitle to final
3) ThreadTitle logic implemented in a helper method
Co-authored-by: Ethan McCue <[email protected]>
* docs(ThreadTitle): add JavaDocs and rename param
Addresses code review by @christolis.
Co-authorized-by: Chris Sdogkos <[email protected]>
Signed-off-by: Chris Sdogkos <[email protected]>
Signed-off-by: billpapat <[email protected]>
* Changes as per requested by Zabuzard
* Changes as per requested by Zabuzard
* Changes as per requested by Taz03
---------
Signed-off-by: Chris Sdogkos <[email protected]>
Signed-off-by: billpapat <[email protected]>
Co-authored-by: Chris Sdogkos <[email protected]>
Co-authored-by: Ethan McCue <[email protected]>1 parent 2e1fb91 commit 03ea888
File tree
1 file changed
+23
-9
lines changed- application/src/main/java/org/togetherjava/tjbot/features/basic
1 file changed
+23
-9
lines changedLines changed: 23 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | | - | |
61 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
62 | 73 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
66 | 79 | | |
67 | | - | |
| 80 | + | |
| 81 | + | |
68 | 82 | | |
69 | 83 | | |
70 | | - | |
| 84 | + | |
71 | 85 | | |
72 | 86 | | |
73 | 87 | | |
| |||
0 commit comments