调整im 登陆
This commit is contained in:
@@ -109,8 +109,9 @@ object AppState {
|
||||
OpenIMManager.initSDK(context, initConfig)
|
||||
|
||||
try {
|
||||
val sign = accountService.getMyTrtcSign()
|
||||
loginToOpenIM(sign.userId, sign.sig)
|
||||
if (profile?.chatToken != null && profile?.trtcUserId != null) {
|
||||
loginToOpenIM(profile!!.trtcUserId, profile!!.chatToken!!)
|
||||
}
|
||||
|
||||
context.startService(Intent(context, OpenIMService::class.java))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user