mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-23 18:00:32 +08:00
del notifi
This commit is contained in:
parent
2663c60850
commit
1b109964ff
@ -95,7 +95,7 @@ func (m *msgServer) conversationClearSync(ctx context.Context, opt *msg.DeleteSy
|
|||||||
}
|
}
|
||||||
if opt.IsSyncOther {
|
if opt.IsSyncOther {
|
||||||
for _, conversationID := range conversationIDs {
|
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)
|
m.notificationSender.Notification(ctx, userID, userID, constant.DeleteMsgsNotification, tips)
|
||||||
}
|
}
|
||||||
if opt.IsSyncOther {
|
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)
|
conversation, err := m.Conversation.GetConversationByConversationID(ctx, conversationID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.ZWarn(ctx, "GetConversation error", err, "conversationID", conversationID, "userID", userID)
|
log.ZWarn(ctx, "GetConversation error", err, "conversationID", conversationID, "userID", userID)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user