Skip to content

Commit

Permalink
Synchronize disappearing chat fix with android.
Browse files Browse the repository at this point in the history
  • Loading branch information
aforge committed Nov 7, 2022
1 parent 25c4e59 commit 6b78241
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TinodeSDK/Topic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,10 @@ open class Topic<DP: Codable & Mergeable, DR: Codable & Mergeable, SP: Codable,
if !isAttached {
self?.attached = true
if let ctrl = msg?.ctrl {
if !(ctrl.params?.isEmpty ?? true), ctrl.getStringParam(for: "what") != "del" {
self?.description.acs = Acs(from: ctrl.getStringDict(for: "acs"))
if !(ctrl.params?.isEmpty ?? true) {
if let acsStr = ctrl.getStringDict(for: "acs") {
self?.description.acs = Acs(from: acsStr)
}
if self?.isNew ?? false {
self?.updated = ctrl.ts
self?.setName(name: ctrl.topic!)
Expand Down

0 comments on commit 6b78241

Please sign in to comment.