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 <50835814+billpapat@users.noreply.github.com>
Co-authored-by: Chris Sdogkos <work@chris-sdogkos.com>
Mentored-by: Chris Sdogkos <work@chris-sdogkos.com>
* style: apply gradle task `spotlessApply`
CI/CD is failing without this commit.
Co-authored-by: billpapat <50835814+billpapat@users.noreply.github.com>
Co-authored-by: Chris Sdogkos <work@chris-sdogkos.com>
Mentored-by: Chris Sdogkos <work@chris-sdogkos.com>
* 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 <5004262+bowbahdoe@users.noreply.github.com>
* docs(ThreadTitle): add JavaDocs and rename param
Addresses code review by @christolis.
Co-authorized-by: Chris Sdogkos <work@chris-sdogkos.com>
Signed-off-by: Chris Sdogkos <work@chris-sdogkos.com>
Signed-off-by: billpapat <50835814+billpapat@users.noreply.github.com>
* Changes as per requested by Zabuzard
* Changes as per requested by Zabuzard
* Changes as per requested by Taz03
---------
Signed-off-by: Chris Sdogkos <work@chris-sdogkos.com>
Signed-off-by: billpapat <50835814+billpapat@users.noreply.github.com>
Co-authored-by: Chris Sdogkos <work@chris-sdogkos.com>
Co-authored-by: Ethan McCue <5004262+bowbahdoe@users.noreply.github.com>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