Commit bd3bcb13 by 万齐军

通话自定义消息onlineOnly

parent cb9f150f
...@@ -239,7 +239,7 @@ class IMServiceImpl : IImService { ...@@ -239,7 +239,7 @@ class IMServiceImpl : IImService {
customNotification.sessionId = toUid customNotification.sessionId = toUid
customNotification.config = config customNotification.config = config
customNotification.content = content customNotification.content = content
// customNotification.isSendToOnlineUserOnly=false customNotification.isSendToOnlineUserOnly = true
NIMClient.getService(MsgService::class.java).sendCustomNotification(customNotification).setCallback(object : RequestCallback<Void?> { NIMClient.getService(MsgService::class.java).sendCustomNotification(customNotification).setCallback(object : RequestCallback<Void?> {
override fun onSuccess(param: Void?) { override fun onSuccess(param: Void?) {
callback.onSuccess() callback.onSuccess()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment