diff --git a/client/components/MessageList.vue b/client/components/MessageList.vue index da23b1b0..bc59dfcf 100644 --- a/client/components/MessageList.vue +++ b/client/components/MessageList.vue @@ -63,8 +63,8 @@ @click="jumpToBottom()">
{{ unreadMessages }}
+ v-if="channel.unread > 0" + class="scroll-down-number">{{ channel.unread }}
@@ -137,19 +137,6 @@ export default { return condensed; }, - unreadMessages() { - let unread = 0; - - for (let id = this.condensedMessages.length - 1; id > 0; id--) { - if (this.channel.firstUnread >= this.condensedMessages[id].id) { - break; - } - - unread++; - } - - return unread; - }, }, watch: { "channel.id"() {