|
|
@ -271,9 +271,9 @@ final class EditClosedGroupVC : BaseVC, UITableViewDataSource, UITableViewDelega
|
|
|
|
Storage.write(with: { [weak self] transaction in
|
|
|
|
Storage.write(with: { [weak self] transaction in
|
|
|
|
do {
|
|
|
|
do {
|
|
|
|
if !members.contains(getUserHexEncodedPublicKey()) {
|
|
|
|
if !members.contains(getUserHexEncodedPublicKey()) {
|
|
|
|
try MessageSender.leave(groupPublicKey, using: transaction)
|
|
|
|
try MessageSender.v2_leave(groupPublicKey, using: transaction)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
try MessageSender.update(groupPublicKey, with: members, name: name, transaction: transaction)
|
|
|
|
try MessageSender.v2_update(groupPublicKey, with: members, name: name, transaction: transaction)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch {
|
|
|
|
} catch {
|
|
|
|
DispatchQueue.main.async {
|
|
|
|
DispatchQueue.main.async {
|
|
|
|