如何判断在接收到消息后,判断这个消息的『会话』是否被置顶。谢谢
监听发现,conversation 置不置顶 好像没有啥区别
// 判断是否置顶 var conversation = ChatManager.Instance().getConversation(message.conversation) conversation?.let { if (it.top == 1) { playAudioWithCoroutine(soundMessageContent.remoteUrl) } } 找到处理的方法了。结贴把
// 判断是否置顶 var conversation = ChatManager.Instance().getConversation(message.conversation) conversation?.let { if (it.top == 1) { playAudioWithCoroutine(soundMessageContent.remoteUrl) } }