Skip to content

Commit 193ecb9

Browse files
committed
Merge remote-tracking branch 'origin/tuoyun' into tuoyun
2 parents 8a4507e + 9d6fc85 commit 193ecb9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

internal/conversation_msg/conversation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func (c *Conversation) revokeOneMessage(callback open_im_sdk_callback.Base, req
251251
switch req.SessionType {
252252
case constant.SingleChatType:
253253
recvID = req.RecvID
254-
conversationID = utils.GetConversationIDBySessionType(groupID, constant.SingleChatType)
254+
conversationID = utils.GetConversationIDBySessionType(recvID, constant.SingleChatType)
255255
case constant.GroupChatType:
256256
groupID = req.GroupID
257257
conversationID = utils.GetConversationIDBySessionType(groupID, constant.GroupChatType)

internal/conversation_msg/conversation_msg.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ func (c *Conversation) doUpdateConversation(c2v common.Cmd2Value) {
445445
lc := node.Args.(db.LocalConversation)
446446
oc, err := c.db.GetConversation(lc.ConversationID)
447447
if err == nil {
448-
log.Info("this is old conversation", oc)
448+
log.Info("this is old conversation", *oc)
449449
if lc.LatestMsgSendTime >= oc.LatestMsgSendTime { //The session update of asynchronous messages is subject to the latest sending time
450450
err := c.db.UpdateColumnsConversation(node.ConID, map[string]interface{}{"latest_msg_send_time": lc.LatestMsgSendTime, "latest_msg": lc.LatestMsg})
451451
if err != nil {
@@ -458,6 +458,7 @@ func (c *Conversation) doUpdateConversation(c2v common.Cmd2Value) {
458458
}
459459
}
460460
} else {
461+
log.Info("this is new conversation", lc)
461462
err4 := c.db.InsertConversation(&lc)
462463
if err4 != nil {
463464
log.Error("internal", "insert new conversation err:", err4.Error())

0 commit comments

Comments
 (0)