Skip to content

Commit 6b9399e

Browse files
authored
fix_: prevent panic in handleRetrievedMessages (#6562)
1 parent e1096ea commit 6b9399e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

protocol/messenger.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3321,7 +3321,8 @@ func (m *Messenger) handleRetrievedMessages(chatWithMessages map[messaging.ChatF
33213321

33223322
controlledCommunitiesChatIDs, err := m.communitiesManager.GetOwnedCommunitiesChatIDs()
33233323
if err != nil {
3324-
logger.Info("failed to retrieve admin communities", zap.Error(err))
3324+
logger.Error("failed to retrieve admin communities", zap.Error(err))
3325+
return nil, err
33253326
}
33263327

33273328
// fetch universal chatIDs as well.

0 commit comments

Comments
 (0)