Reimplemented RECEIVED update sending to sender
This commit is contained in:
parent
7fb5a5618e
commit
450714608b
@ -8,6 +8,7 @@ import javax.persistence.EntityExistsException;
|
||||
|
||||
import envoy.data.GroupMessage;
|
||||
import envoy.data.Message.MessageStatus;
|
||||
import envoy.event.MessageStatusChange;
|
||||
import envoy.server.data.PersistenceManager;
|
||||
import envoy.server.net.ConnectionManager;
|
||||
import envoy.server.net.ObjectWriteProxy;
|
||||
@ -42,12 +43,12 @@ public class GroupMessageProcessor implements ObjectProcessor<GroupMessage> {
|
||||
// sender, if he is still online.
|
||||
if (!groupMessage.getMemberStatuses().containsValue(MessageStatus.SENT)) {
|
||||
groupMessage.setStatus(MessageStatus.RECEIVED);
|
||||
// if (connectionManager.isOnline(connectionManager.getUserIdBySocketID(socketID))) try {
|
||||
// writeProxy.write(socketID, new MessageStatusChange(groupMessage));
|
||||
// } catch (IOException e) {
|
||||
// logger.warning("Sender of the groupMessage online. Failed to send MessageStatusChange");
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
if (connectionManager.isOnline(connectionManager.getUserIdBySocketID(socketID))) try {
|
||||
writeProxy.write(socketID, new MessageStatusChange(groupMessage));
|
||||
} catch (IOException e) {
|
||||
logger.warning("Sender of the groupMessage online. Failed to send MessageStatusChange");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
members.stream()
|
||||
|
Reference in New Issue
Block a user