mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-16 06:49:02 +08:00
sync delete msg
This commit is contained in:
@@ -89,7 +89,7 @@ func (m *msgServer) conversationClearSync(ctx context.Context, opt *msg.DeleteSy
|
|||||||
if opt == nil {
|
if opt == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if opt.IsSyncSelf {
|
if opt.IsSyncSelf && !opt.IsSyncOther {
|
||||||
tips := &sdkws.ClearConversationTips{UserID: userID, ConversationIDs: conversationIDs}
|
tips := &sdkws.ClearConversationTips{UserID: userID, ConversationIDs: conversationIDs}
|
||||||
m.notificationSender.Notification(ctx, userID, userID, constant.ClearConversationNotification, tips)
|
m.notificationSender.Notification(ctx, userID, userID, constant.ClearConversationNotification, tips)
|
||||||
}
|
}
|
||||||
@@ -104,7 +104,7 @@ func (m *msgServer) DeleteMsgsNotification(ctx context.Context, conversationID,
|
|||||||
if opt == nil {
|
if opt == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if opt.IsSyncSelf {
|
if opt.IsSyncSelf && !opt.IsSyncOther {
|
||||||
tips := &sdkws.DeleteMsgsTips{UserID: userID, ConversationID: conversationID, Seqs: seqs}
|
tips := &sdkws.DeleteMsgsTips{UserID: userID, ConversationID: conversationID, Seqs: seqs}
|
||||||
m.notificationSender.Notification(ctx, userID, userID, constant.DeleteMsgsNotification, tips)
|
m.notificationSender.Notification(ctx, userID, userID, constant.DeleteMsgsNotification, tips)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user