fix push online and offline user, but why typing trigger callback push?

pull/1681/head
AndrewZuo01 2 years ago
parent 75414a52f8
commit afcb369fae

@ -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
}

Loading…
Cancel
Save