fix: Limit the number of unread messages returned in the API (#1504)

This commit is contained in:
Pranav Raj S
2020-12-10 23:30:38 +05:30
committed by GitHub
parent 88c4b63eec
commit b6ca77158c
2 changed files with 4 additions and 4 deletions

View File

@@ -39,7 +39,7 @@
<span class="timestamp">
{{ dynamicTime(chat.timestamp) }}
</span>
<span class="unread">{{ getUnreadCount }}</span>
<span class="unread">{{ unreadCount > 9 ? '9+' : unreadCount }}</span>
</div>
</div>
</div>
@@ -108,12 +108,12 @@ export default {
return this.currentChat.id === this.chat.id;
},
getUnreadCount() {
unreadCount() {
return this.unreadMessagesCount(this.chat);
},
hasUnread() {
return this.getUnreadCount > 0;
return this.unreadCount > 0;
},
isInboxNameVisible() {