chore(no-torrent)_: removed TorrentManager from checkIfIMemberOfCommunity

This commit is contained in:
Samuel Hawksby-Robinson 2024-06-02 22:53:56 +01:00
parent 96b4684647
commit 4761b1245e
1 changed files with 2 additions and 2 deletions

View File

@ -3910,12 +3910,12 @@ func (m *Messenger) enableHistoryArchivesImportAfterDelay() {
func (m *Messenger) checkIfIMemberOfCommunity(communityID types.HexBytes) error {
community, err := m.communitiesManager.GetByID(communityID)
if err != nil {
m.torrentManager.LogStdout("couldn't get community to import archives", zap.Error(err))
m.logger.Error("couldn't get community to import archives", zap.Error(err))
return err
}
if !community.HasMember(&m.identity.PublicKey) {
m.torrentManager.LogStdout("can't import archives when user not a member of community")
m.logger.Error("can't import archives when user not a member of community")
return ErrUserNotMember
}