From 3554a89c41aff7e80a2906d8d094f45451cb8746 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Thu, 1 Jun 2023 15:22:53 +0800 Subject: [PATCH] sync delete msg --- internal/rpc/msg/delete.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/rpc/msg/delete.go b/internal/rpc/msg/delete.go index 572dc1160..e9adfe7ea 100644 --- a/internal/rpc/msg/delete.go +++ b/internal/rpc/msg/delete.go @@ -89,7 +89,7 @@ func (m *msgServer) conversationClearSync(ctx context.Context, opt *msg.DeleteSy if opt == nil { return } - if opt.IsSyncSelf { + if opt.IsSyncSelf && !opt.IsSyncOther { tips := &sdkws.ClearConversationTips{UserID: userID, ConversationIDs: conversationIDs} m.notificationSender.Notification(ctx, userID, userID, constant.ClearConversationNotification, tips) } @@ -104,7 +104,7 @@ func (m *msgServer) DeleteMsgsNotification(ctx context.Context, conversationID, if opt == nil { return } - if opt.IsSyncSelf { + if opt.IsSyncSelf && !opt.IsSyncOther { tips := &sdkws.DeleteMsgsTips{UserID: userID, ConversationID: conversationID, Seqs: seqs} m.notificationSender.Notification(ctx, userID, userID, constant.DeleteMsgsNotification, tips) }