From ce1ad1f18afa0ece69f887be8d971bebddc0ae4b Mon Sep 17 00:00:00 2001 From: a3d21 Date: Thu, 26 Oct 2023 15:40:06 +0800 Subject: [PATCH] fix: NotNotifyUser receive offline push --- internal/push/push_to_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/push/push_to_client.go b/internal/push/push_to_client.go index ba0d65b39..97a049ffe 100644 --- a/internal/push/push_to_client.go +++ b/internal/push/push_to_client.go @@ -222,7 +222,7 @@ func (p *Pusher) Push2SuperGroup(ctx context.Context, groupID string, msg *sdkws // log.ZError(ctx, "GetRecvMsgNotNotifyUserIDs failed", err, "groupID", groupID) return err } - needOfflinePushUserIDs = utils.DifferenceString(notNotificationUserIDs, needOfflinePushUserIDs) + needOfflinePushUserIDs = utils.IntersectString(utils.DifferenceString(notNotificationUserIDs, needOfflinePushUserIDs), needOfflinePushUserIDs) } // Use offline push messaging if len(needOfflinePushUserIDs) > 0 {