Deep-link 直接进入特定的聊天或消息?

Deep-link directly into a specific chat or message?

这是针对 iOS 的:当我有一个频道 ID and/or 一条消息时,你建议使用什么方法从应用程序的其他地方直接深度链接到特定的聊天或消息-id?

我们建议使用 query 函数通过 ID 获取 messages/channels。

// Fetch a channel by id
let query = ChannelsQuery(filter: .key("id", .equal(to: "channel-id")))
Client.shared.channels(query: query).subscribe(onNext: { (response) in
    // handle response
}).disposed(by: disposeBag)

// Fetch a message by id
Client.shared.message(with: "message-id").subscribe(onNext: { (response) in
    // handle response
}).disposed(by: disposeBag)

很快我们将发布 2.0,它将支持通常的回调方式。