From 9e833cd4c788227a9cda2daff1564f0a148563e8 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Wed, 9 Mar 2022 12:07:38 -0400 Subject: [PATCH] fix: add community status updates channel to list of filters on Init --- protocol/communities/community.go | 3 ++- protocol/messenger.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/protocol/communities/community.go b/protocol/communities/community.go index 5a3c0fbbf..9608f5263 100644 --- a/protocol/communities/community.go +++ b/protocol/communities/community.go @@ -949,7 +949,8 @@ func (o *Community) StatusUpdatesChannelID() string { func (o *Community) DefaultFilters() []string { cID := o.IDString() - return []string{cID, cID + "-ping"} + updatesChannelID := o.StatusUpdatesChannelID() + return []string{cID, updatesChannelID} } func (o *Community) PrivateKey() *ecdsa.PrivateKey { diff --git a/protocol/messenger.go b/protocol/messenger.go index 834b759ec..ce33097db 100644 --- a/protocol/messenger.go +++ b/protocol/messenger.go @@ -1220,7 +1220,7 @@ func (m *Messenger) Init() error { } for _, org := range joinedCommunities { // the org advertise on the public topic derived by the pk - publicChatIDs = append(publicChatIDs, org.IDString()) + publicChatIDs = append(publicChatIDs, org.IDString(), org.StatusUpdatesChannelID()) } // Init filters for the communities we are an admin of