From df4d392ca77d1d07ab48f1cc333a01647ed5bacf Mon Sep 17 00:00:00 2001 From: Tyler Brown Cifu Shuster Date: Fri, 18 Sep 2020 21:57:44 -0700 Subject: [PATCH] chat: fixes misses pending messages fixes #3497 --- .../src/views/apps/chat/components/lib/ChatWindow.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/interface/src/views/apps/chat/components/lib/ChatWindow.tsx b/pkg/interface/src/views/apps/chat/components/lib/ChatWindow.tsx index f166ede6a..9d57c9182 100644 --- a/pkg/interface/src/views/apps/chat/components/lib/ChatWindow.tsx +++ b/pkg/interface/src/views/apps/chat/components/lib/ChatWindow.tsx @@ -238,8 +238,8 @@ export default class ChatWindow extends Component 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 };