Notifying the message sender about message status changes
This commit is contained in:
parent
74786f469b
commit
27a641a5d3
@ -39,6 +39,7 @@ public class MessageStatusChangeProcessor implements ObjectProcessor<MessageStat
|
|||||||
msg.setReadDate(input.getDate());
|
msg.setReadDate(input.getDate());
|
||||||
perMan.updateMessage(msg);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user