fix(chat/groups): do not propagate empty members sequence

fixes: #8832
This commit is contained in:
Patryk Osmaczko 2022-12-16 13:02:00 +01:00 committed by r4bbit
parent f0744ed61d
commit e38d8c8490
1 changed files with 4 additions and 2 deletions

View File

@ -77,5 +77,7 @@ QtObject:
let temporaryModelIDs = self.temporaryModel.getItemIds()
let membersAdded = filter(temporaryModelIDs, id => not modelIDs.contains(id))
let membersRemoved = filter(modelIDs, id => not temporaryModelIDs.contains(id))
if (membersAdded.len > 0):
self.delegate.addGroupMembers(membersAdded)
if (membersRemoved.len > 0):
self.delegate.removeGroupMembers(membersRemoved)