Add support for private messages without text

This commit is contained in:
Torsten Grote
2018-11-12 11:03:24 -02:00
parent f9987c89df
commit 88276a4d44
7 changed files with 38 additions and 12 deletions

View File

@@ -122,7 +122,7 @@ class MessagingManagerImpl extends ConversationClientImpl
boolean read = meta.getBoolean(MSG_KEY_READ);
PrivateMessageHeader header =
new PrivateMessageHeader(m.getId(), groupId, timestamp, local,
read, false, false, emptyList());
read, false, false, true, emptyList());
ContactId contactId = getContactId(txn, groupId);
PrivateMessageReceivedEvent event =
new PrivateMessageReceivedEvent(header, contactId);
@@ -217,7 +217,7 @@ class MessagingManagerImpl extends ConversationClientImpl
boolean local = meta.getBoolean("local");
boolean read = meta.getBoolean("read");
headers.add(new PrivateMessageHeader(id, g, timestamp, local,
read, s.isSent(), s.isSeen(), emptyList()));
read, s.isSent(), s.isSeen(), true, emptyList()));
} catch (FormatException e) {
throw new DbException(e);
}