From 1b109964ff2fb13a15b1b56f26e895af87c4ce99 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Tue, 30 May 2023 14:29:54 +0800 Subject: [PATCH] del notifi --- internal/rpc/msg/delete.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/rpc/msg/delete.go b/internal/rpc/msg/delete.go index 57ecfea9d..572dc1160 100644 --- a/internal/rpc/msg/delete.go +++ b/internal/rpc/msg/delete.go @@ -95,7 +95,7 @@ func (m *msgServer) conversationClearSync(ctx context.Context, opt *msg.DeleteSy } if opt.IsSyncOther { for _, conversationID := range conversationIDs { - m.getConversationAndSendNoti(ctx, conversationID, userID, &sdkws.ClearConversationTips{UserID: userID, ConversationIDs: []string{conversationID}}) + m.getConversationAndNotification(ctx, conversationID, userID, &sdkws.ClearConversationTips{UserID: userID, ConversationIDs: []string{conversationID}}) } } } @@ -109,11 +109,11 @@ func (m *msgServer) DeleteMsgsNotification(ctx context.Context, conversationID, m.notificationSender.Notification(ctx, userID, userID, constant.DeleteMsgsNotification, tips) } if opt.IsSyncOther { - m.getConversationAndSendNoti(ctx, conversationID, userID, &sdkws.DeleteMsgsTips{UserID: userID, ConversationID: conversationID, Seqs: seqs}) + m.getConversationAndNotification(ctx, conversationID, userID, &sdkws.DeleteMsgsTips{UserID: userID, ConversationID: conversationID, Seqs: seqs}) } } -func (m *msgServer) getConversationAndSendNoti(ctx context.Context, conversationID, userID string, tips proto.Message) { +func (m *msgServer) getConversationAndNotification(ctx context.Context, conversationID, userID string, tips proto.Message) { conversation, err := m.Conversation.GetConversationByConversationID(ctx, conversationID) if err != nil { log.ZWarn(ctx, "GetConversation error", err, "conversationID", conversationID, "userID", userID)