fix(@desktop/communities): Fix joining community
Unexpected exception broke handleCommunityUpdates Fix #13958
This commit is contained in:
parent
82bcddd488
commit
ce4996075c
|
@ -530,12 +530,14 @@ QtObject:
|
||||||
|
|
||||||
let prevCommunity = self.communities[community.id]
|
let prevCommunity = self.communities[community.id]
|
||||||
|
|
||||||
let currOwner = community.findOwner()
|
try:
|
||||||
let prevOwner = prevCommunity.findOwner()
|
let currOwner = community.findOwner()
|
||||||
|
let prevOwner = prevCommunity.findOwner()
|
||||||
if currOwner.id != prevOwner.id:
|
if currOwner.id != prevOwner.id:
|
||||||
for chat in community.chats:
|
for chat in community.chats:
|
||||||
self.updateMemberRole(chat.id, currOwner)
|
self.updateMemberRole(chat.id, currOwner)
|
||||||
|
except Exception:
|
||||||
|
discard
|
||||||
|
|
||||||
# ownership lost
|
# ownership lost
|
||||||
if prevCommunity.isOwner and not community.isOwner:
|
if prevCommunity.isOwner and not community.isOwner:
|
||||||
|
|
Loading…
Reference in New Issue