mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 16:56:53 +00:00
fix: increase community clock with channel members changes
This commit is contained in:
parent
c1a98005e9
commit
bb942f6c8f
@ -772,6 +772,10 @@ func (o *Community) RemoveUserFromChat(pk *ecdsa.PublicKey, chatID string) (*pro
|
|||||||
key := common.PubkeyToHex(pk)
|
key := common.PubkeyToHex(pk)
|
||||||
delete(chat.Members, key)
|
delete(chat.Members, key)
|
||||||
|
|
||||||
|
if o.IsControlNode() {
|
||||||
|
o.increaseClock()
|
||||||
|
}
|
||||||
|
|
||||||
return o.config.CommunityDescription, nil
|
return o.config.CommunityDescription, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1900,6 +1904,10 @@ func (o *Community) AddMemberToChat(chatID string, publicKey *ecdsa.PublicKey, r
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if o.IsControlNode() {
|
||||||
|
o.increaseClock()
|
||||||
|
}
|
||||||
|
|
||||||
return changes, nil
|
return changes, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1933,6 +1941,8 @@ func (o *Community) populateChatWithAllMembers(chatID string) (*CommunityChanges
|
|||||||
}
|
}
|
||||||
|
|
||||||
chat.Members = o.Members()
|
chat.Members = o.Members()
|
||||||
|
o.increaseClock()
|
||||||
|
|
||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user