return muted chats in ChatsPreview call (#2617)

This commit is contained in:
Parvesh Monu 2022-04-01 14:20:38 +05:30 committed by GitHub
parent 16311512cb
commit 724689086c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
0.97.3
0.97.4

View file

@ -27,7 +27,7 @@ func (m *Messenger) ChatsPreview() []*ChatPreview {
var chats []*ChatPreview
m.allChats.Range(func(chatID string, chat *Chat) (shouldContinue bool) {
if chat.Active {
if chat.Active || chat.Muted {
chatPreview := &ChatPreview{
ID: chat.ID,
Name: chat.Name,