|
|
@ -533,16 +533,6 @@ extension MessageSender {
|
|
|
|
variant: .infoClosedGroupCurrentUserLeft,
|
|
|
|
variant: .infoClosedGroupCurrentUserLeft,
|
|
|
|
body: "GROUP_YOU_LEFT".localized()
|
|
|
|
body: "GROUP_YOU_LEFT".localized()
|
|
|
|
).update(db)
|
|
|
|
).update(db)
|
|
|
|
}
|
|
|
|
|
|
|
|
seal.fulfill((interactionId, nil))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.catch { error in
|
|
|
|
|
|
|
|
seal.fulfill((interactionId, error))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch {
|
|
|
|
|
|
|
|
seal.fulfill((interactionId, error))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Update the group (if the admin leaves the group is disbanded)
|
|
|
|
// Update the group (if the admin leaves the group is disbanded)
|
|
|
|
let wasAdminUser: Bool = try GroupMember
|
|
|
|
let wasAdminUser: Bool = try GroupMember
|
|
|
@ -562,6 +552,16 @@ extension MessageSender {
|
|
|
|
.filter(GroupMember.Columns.profileId == userPublicKey)
|
|
|
|
.filter(GroupMember.Columns.profileId == userPublicKey)
|
|
|
|
.deleteAll(db)
|
|
|
|
.deleteAll(db)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
seal.fulfill((interactionId, nil))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.catch { error in
|
|
|
|
|
|
|
|
seal.fulfill((interactionId, error))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch {
|
|
|
|
|
|
|
|
seal.fulfill((interactionId, error))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Return
|
|
|
|
// Return
|
|
|
|
return promise
|
|
|
|
return promise
|
|
|
|