Trim channel when switching away from it

This commit is contained in:
Pavel Djundik 2018-07-11 10:38:18 +03:00 committed by Pavel Djundik
parent b963fe3cf0
commit 739d44b561

View file

@ -131,6 +131,7 @@ window.vueMounted = () => {
if (lastChannel.messages.length > 0) {
lastChannel.firstUnread = lastChannel.messages[lastChannel.messages.length - 1].id;
lastChannel.messages.splice(0, lastChannel.messages.length - 100);
}
}