【发布时间】:2017-01-07 22:11:46
【问题描述】:
我需要在聊天对话框中存储自定义参数,但该对话框无法使用新参数进行更新。在两个打印语句中,Chat Dialog 和updated Dialog 下的一个;仍然(null) 中的数据字段。我已按照 Quickblox 网站上的步骤进行操作,但这仍然失败。我在这里遗漏了什么吗?
chatDialog?.data = ["UserID" : "2342342342134231412342" ]
print("Chat dialog")
print(chatDialog)
QBRequest.update(chatDialog!, successBlock: { (response, updatedDialog) in
guard updatedDialog != nil else {
return
}
print("updated dialog")
print(updatedDialog!)
completion(response, updatedDialog)
})
【问题讨论】:
-
您找到解决方案了吗?我也在尝试同样的方法。响应显示更新的对话框,但是当我再次从服务器获取对话框时,它显示旧数据。
标签: ios chat quickblox custom-properties