fixed not receiving pending messageStatus bug

This commit is contained in:
Maximilian P. Käfer 2020-09-26 17:39:21 +02:00
parent f0e645c0ae
commit b95ac57a60
Signed by: mpk
GPG Key ID: 035869C949377C5C

View File

@ -209,8 +209,8 @@ public final class LoginCredentialProcessor implements ObjectProcessor<LoginCred
}
// Deliver just a status change instead of the whole message
if (gmsg.getStatus() == SENT && user.getLastSeen().isBefore(gmsg.getCreationDate())
|| gmsg.getStatus() == RECEIVED && user.getLastSeen().isBefore(gmsg.getReceivedDate()))
if (gmsg.getStatus() == RECEIVED && user.getLastSeen().isBefore(gmsg.getReceivedDate())
|| gmsg.getStatus() == READ && user.getLastSeen().isBefore(gmsg.getReadDate()))
writeProxy.write(socketID, new MessageStatusChange(gmsgCommon));
}
}