Merge pull request #3533 from tylershuster/pending-message-fix

chat: fixes misses pending messages
This commit is contained in:
matildepark 2020-09-21 14:20:54 -04:00 committed by GitHub
commit a4636869aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,8 +238,8 @@ export default class ChatWindow extends Component<ChatWindowProps, ChatWindowSta
.sort((a, b) => a.when - b.when)
.forEach((message, index) => {
index = index + 1; // To 1-index it
messages.set(envelopes.length + index, message);
lastMessage = envelopes.length + index;
messages.set(mailboxSize + index, message);
lastMessage = mailboxSize + index;
});
const messageProps = { association, group, contacts, hideAvatars, hideNicknames, remoteContentPolicy };