Skip to content

Commit d841d63

Browse files
committed
conversation update
1 parent 855e893 commit d841d63

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

internal/conversation_msg/open_im_sdk_conversation_msg.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ func (c *Conversation) SetConversationRecvMessageOpt(callback open_im_sdk_callba
8080
callback.OnSuccess(sdk_params_callback.SetConversationRecvMessageOptCallback)
8181
log.NewInfo(operationID, "SetConversationRecvMessageOpt callback: ", sdk_params_callback.SetConversationRecvMessageOptCallback)
8282
}()
83-
8483
}
8584
func (c *Conversation) GetConversationRecvMessageOpt(callback open_im_sdk_callback.Base, conversationIDList, operationID string) {
8685
if callback == nil {

test/t_conversation_msg.go

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,48 @@ func (m MsgListenerCallBak) OnRecvNewMessage(msg string) {
185185
}
186186

187187
}
188+
189+
type TestSearchLocalMessages struct {
190+
OperationID string
191+
}
192+
193+
func (t TestSearchLocalMessages) OnError(errCode int32, errMsg string) {
194+
log.Info(t.OperationID, "SearchLocalMessages , OnError %v\n", errMsg)
195+
}
196+
197+
func (t TestSearchLocalMessages) OnSuccess(data string) {
198+
log.Info(t.OperationID, "SearchLocalMessages , OnSuccess %v\n", data)
199+
}
200+
func DoTestSearchLocalMessages() {
201+
var t TestSearchLocalMessages
202+
operationID := utils.OperationIDGenerator()
203+
t.OperationID = operationID
204+
var p sdk_params_callback.SearchLocalMessagesParams
205+
//p.SessionType = constant.SingleChatType
206+
p.SourceID = "18090680773"
207+
p.KeywordList = []string{}
208+
p.SearchTimePeriod = 24 * 60 * 60 * 10
209+
open_im_sdk.SearchLocalMessages(t, operationID, utils.StructToJsonString(p))
210+
}
211+
212+
type TestDeleteConversation struct {
213+
OperationID string
214+
}
215+
216+
func (t TestDeleteConversation) OnError(errCode int32, errMsg string) {
217+
log.Info(t.OperationID, "TestDeleteConversation , OnError %v\n", errMsg)
218+
}
219+
220+
func (t TestDeleteConversation) OnSuccess(data string) {
221+
log.Info(t.OperationID, "TestDeleteConversation , OnSuccess %v\n", data)
222+
}
223+
func DoTestDeleteConversation() {
224+
var t TestDeleteConversation
225+
operationID := utils.OperationIDGenerator()
226+
t.OperationID = operationID
227+
conversationID := "single_17396220460"
228+
open_im_sdk.DeleteConversation(t, operationID, conversationID)
229+
}
188230
func (m MsgListenerCallBak) OnRecvC2CReadReceipt(data string) {
189231
fmt.Println("OnRecvC2CReadReceipt , ", data)
190232
}

0 commit comments

Comments
 (0)