Context for reaction notifications
(cherry picked from commit d337d19533bfaac246ab282d2eb51de071e63027)
This commit is contained in:
parent
f92211835e
commit
f5ecb4bce0
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue