Merge pull request #723 from Aga-C/fix-group-count

Fixed group count while changing name (#589)
This commit is contained in:
Tibor Kaputa 2021-11-18 09:14:02 +01:00 committed by GitHub
commit 166bd991a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -36,6 +36,7 @@ class RenameGroupDialog(val activity: BaseSimpleActivity, val group: Group, val
}
group.title = newTitle
group.contactsCount = 0
ensureBackgroundThread {
if (group.isPrivateSecretGroup()) {
activity.groupsDB.insertOrUpdate(group)