From 20623a826edbec396f91f49020dca3b14b65d585 Mon Sep 17 00:00:00 2001 From: a3d21 Date: Thu, 26 Oct 2023 17:18:15 +0800 Subject: [PATCH] fix: NotNotifyUser receive offline push --- internal/push/push_to_client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/push/push_to_client.go b/internal/push/push_to_client.go index ba0d65b39..8387aeac8 100644 --- a/internal/push/push_to_client.go +++ b/internal/push/push_to_client.go @@ -222,7 +222,8 @@ 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) + // todo => utils.ExceptString(needOfflinePushUserIDs, notNotificationUserIDs) + needOfflinePushUserIDs = utils.IntersectString(utils.DifferenceString(notNotificationUserIDs, needOfflinePushUserIDs), needOfflinePushUserIDs) } // Use offline push messaging if len(needOfflinePushUserIDs) > 0 {