fix: Limit count query to return only 10 values (#7704)

This commit is contained in:
Pranav Raj S
2023-08-10 19:30:02 -07:00
committed by GitHub
parent 04287a0924
commit 1cac2e86c3
3 changed files with 4 additions and 6 deletions

View File

@@ -45,7 +45,7 @@
/>
<li v-show="unreadMessageCount != 0" class="unread--toast">
<span>
{{ unreadMessageCount }}
{{ unreadMessageCount > 9 ? '9+' : unreadMessageCount }}
{{
unreadMessageCount > 1
? $t('CONVERSATION.UNREAD_MESSAGES')
@@ -314,7 +314,7 @@ export default {
return '';
},
unreadMessageCount() {
return this.currentChat.unread_count;
return this.currentChat.unread_count || 0;
},
},