Notifying the message sender about message status changes

This commit is contained in:
DieGurke 2020-02-05 17:24:31 +01:00
parent 74786f469b
commit 27a641a5d3
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ public class MessageStatusChangeProcessor implements ObjectProcessor<MessageStat
msg.setReadDate(input.getDate());
perMan.updateMessage(msg);
if (conMan.isOnline(msg.getRecipient().getId())) writeProxy.write(conMan.getSocketId(msg.getRecipient().getId()), input);
// Notifies the sender of the message about the status-update to READ
if (conMan.isOnline(msg.getSender().getId())) writeProxy.write(conMan.getSocketId(msg.getSender().getId()), input);
}
}