mirror of
https://github.com/status-im/status-go.git
synced 2025-02-19 18:28:18 +00:00
chore(no-torrent)_: removed TorrentManager from checkIfIMemberOfCommunity
This commit is contained in:
parent
96b4684647
commit
4761b1245e
@ -3910,12 +3910,12 @@ func (m *Messenger) enableHistoryArchivesImportAfterDelay() {
|
|||||||
func (m *Messenger) checkIfIMemberOfCommunity(communityID types.HexBytes) error {
|
func (m *Messenger) checkIfIMemberOfCommunity(communityID types.HexBytes) error {
|
||||||
community, err := m.communitiesManager.GetByID(communityID)
|
community, err := m.communitiesManager.GetByID(communityID)
|
||||||
if err != nil {
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if !community.HasMember(&m.identity.PublicKey) {
|
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
|
return ErrUserNotMember
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user