diff --git a/services/chat/api.go b/services/chat/api.go index 2d4efe9eb..0815c3886 100644 --- a/services/chat/api.go +++ b/services/chat/api.go @@ -419,7 +419,11 @@ func getChatMembers(sourceChat *protocol.Chat, community *communities.Community, } if community != nil { - for member := range community.Description().Members { + channel, exists := community.Chats()[sourceChat.CommunityChatID()] + if !exists { + return result, communities.ErrChatNotFound + } + for member := range channel.Members { pubKey, err := common.HexToPubkey(member) if err != nil { return nil, err