do not return muc whispers as last markable message

This commit is contained in:
Daniel Gultsch 2017-11-30 17:26:50 +01:00
parent 86f09dd9b9
commit b158e9fd42
1 changed files with 3 additions and 1 deletions

View File

@ -470,7 +470,9 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
synchronized (this.messages) {
for (int i = this.messages.size() - 1; i >= 0; --i) {
final Message message = this.messages.get(i);
if (message.getStatus() <= Message.STATUS_RECEIVED && message.markable) {
if (message.getStatus() <= Message.STATUS_RECEIVED
&& message.markable
&& message.getType() != Message.TYPE_PRIVATE) {
return message.isRead() ? null : message;
}
}