fix: populate API Chat with channel members
This commit is contained in:
parent
367b7722d1
commit
0465ab668d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue