1
0
Fork 1

Context for reaction notifications

(cherry picked from commit d337d19533bfaac246ab282d2eb51de071e63027)
This commit is contained in:
Stephen Paul Weber 2024-11-20 00:06:31 -05:00 committed by Arne
parent f92211835e
commit f5ecb4bce0

View file

@ -535,7 +535,9 @@ public class NotificationService {
if (newReactions.isEmpty()) return;
final var message = reactingTo.reply();
message.appendBody(String.join(" ", newReactions));
final var quoteable = reactingTo.getQuoteableBody();
final var parentTxt = reactingTo.isOOb() ? "media" : "'" + (quoteable.length() > 35 ? quoteable.substring(0, 35) + "" : quoteable) + "'";
message.appendBody(String.join(" ", newReactions) + " to " + parentTxt);
message.setCounterpart(counterpart);
message.setOccupantId(occupantId);
message.setStatus(Message.STATUS_RECEIVED);