Fixed issue regarding the sender of a message not getting an MSCEvent
Added messageStatusChangeEvent sending to online sender if recipient logs in and sender is online at the same time
This commit is contained in:
parent
4bf1fbbc59
commit
05822cf13d
@ -62,6 +62,11 @@ public class LoginCredentialProcessor implements ObjectProcessor<LoginCredential
|
||||
writeProxy.write(socketID, msg.toCommon());
|
||||
msg.setReceivedDate(new Date());
|
||||
msg.setStatus(MessageStatus.RECEIVED);
|
||||
if (connectionManager.isOnline(msg.getSender().getID())) {
|
||||
var evt = new MessageStatusChangeEvent(msg.toCommon());
|
||||
System.out.println("Sending messageStatusChangeEvent to sender " + evt);
|
||||
writeProxy.write(connectionManager.getSocketId(msg.getSender().getID()), evt);
|
||||
}
|
||||
PersistenceManager.getInstance().updateMessage(msg);
|
||||
} else {
|
||||
var evt = new MessageStatusChangeEvent(msg.toCommon());
|
||||
|
Reference in New Issue
Block a user