From afcb369fae86e005a197405097f44d4840497244 Mon Sep 17 00:00:00 2001 From: AndrewZuo01 Date: Sat, 6 Jan 2024 13:13:32 +0800 Subject: [PATCH] fix push online and offline user, but why typing trigger callback 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 b67073795..22a3e7a96 100644 --- a/internal/push/push_to_client.go +++ b/internal/push/push_to_client.go @@ -116,7 +116,7 @@ func (p *Pusher) Push2User(ctx context.Context, userIDs []string, msg *sdkws.Msg } for _, v := range wsResults { - if msg.SendID == v.UserID { + if msg.SendID == v.UserID || msg.ContentType == constant.Typing { continue // Skip if sender and receiver are the same }