fix: add community status updates channel to list of filters on Init

This commit is contained in:
Richard Ramos 2022-03-09 12:07:38 -04:00
parent 6ac4fcd6e7
commit 9e833cd4c7
2 changed files with 3 additions and 2 deletions

View File

@ -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 {

View File

@ -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