diff --git a/protocol/messenger_communities.go b/protocol/messenger_communities.go index 499a57c61b6..9c901bab74f 100644 --- a/protocol/messenger_communities.go +++ b/protocol/messenger_communities.go @@ -96,9 +96,16 @@ func (m *Messenger) handleCommunitiesHistoryArchivesSubscription(c chan *communi m.config.messengerSignalsHandler.HistoryArchivesSeeding(sub.HistoryArchivesSeedingSignal.CommunityID) - err := m.dispatchMagnetlinkMessage(sub.HistoryArchivesSeedingSignal.CommunityID) + c, err := m.communitiesManager.GetByIDString(sub.HistoryArchivesSeedingSignal.CommunityID) if err != nil { - m.logger.Debug("failed to dispatch magnetlink message", zap.Error(err)) + m.logger.Debug("failed to retrieve community by id string", zap.Error(err)) + } + + if c.IsAdmin() { + err := m.dispatchMagnetlinkMessage(sub.HistoryArchivesSeedingSignal.CommunityID) + if err != nil { + m.logger.Debug("failed to dispatch magnetlink message", zap.Error(err)) + } } }