From a21e0e34cd8b53d1853f1a63e3755cd7734a2c5a Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 23 Jul 2018 09:58:35 +0300 Subject: [PATCH] Fix unread marker not showing after condensed messages --- client/components/MessageList.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/components/MessageList.vue b/client/components/MessageList.vue index 73a5b4de..7c341737 100644 --- a/client/components/MessageList.vue +++ b/client/components/MessageList.vue @@ -126,7 +126,6 @@ export default { if (lastCondensedContainer === null) { lastCondensedContainer = { - id: message.id, // Use id of first message in the condensed container time: message.time, type: "condensed", messages: [], @@ -136,6 +135,10 @@ export default { } lastCondensedContainer.messages.push(message); + + // Set id of the condensed container to last message id, + // which is required for the unread marker to work correctly + lastCondensedContainer.id = message.id; } return condensed;