Skip to content

Commit 82b9cec

Browse files
authored
fix: GetConversationIDBySessionType 返回的字符串带转义符 (#844)
1 parent a213479 commit 82b9cec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

open_im_sdk/conversation_msg.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ func CreateForwardMessage(operationID string, m string) string {
101101
return syncCall(operationID, UserForSDK.Conversation().CreateForwardMessage, m)
102102
}
103103
func GetConversationIDBySessionType(operationID string, sourceID string, sessionType int) string {
104-
return syncCall(operationID, UserForSDK.Conversation().GetConversationIDBySessionType, sourceID, sessionType)
104+
context := UserForSDK.Context()
105+
return UserForSDK.Conversation().GetConversationIDBySessionType(context, sourceID, sessionType)
106+
// return syncCall(operationID, UserForSDK.Conversation().GetConversationIDBySessionType, sourceID, sessionType)
105107
}
106108
func SendMessage(callback open_im_sdk_callback.SendMsgCallBack, operationID, message, recvID, groupID, offlinePushInfo string, isOnlineOnly bool) {
107109
messageCall(callback, operationID, UserForSDK.Conversation().SendMessage, message, recvID, groupID, offlinePushInfo, isOnlineOnly)

0 commit comments

Comments
 (0)