Fix unread marker not showing after condensed messages

This commit is contained in:
Pavel Djundik 2018-07-23 09:58:35 +03:00 committed by Pavel Djundik
parent 450f3f891a
commit a21e0e34cd

View File

@ -126,7 +126,6 @@ export default {
if (lastCondensedContainer === null) { if (lastCondensedContainer === null) {
lastCondensedContainer = { lastCondensedContainer = {
id: message.id, // Use id of first message in the condensed container
time: message.time, time: message.time,
type: "condensed", type: "condensed",
messages: [], messages: [],
@ -136,6 +135,10 @@ export default {
} }
lastCondensedContainer.messages.push(message); 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; return condensed;