From e86d1cd7427c36407e21bced1ad562c637c82a07 Mon Sep 17 00:00:00 2001 From: OpenIM-Gordon <46924906+FGadvancer@users.noreply.github.com> Date: Wed, 13 Mar 2024 13:42:00 +0800 Subject: [PATCH] optimization: message remove options. (#2082) * fix: remove unnecessary error handling to avoid sending failed notifications. * fix: remove unnecessary error handling to avoid sending nil resp. * optimization: message remove options. --- internal/rpc/msg/verify.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/rpc/msg/verify.go b/internal/rpc/msg/verify.go index bdaa7fd87..5bfd7013e 100644 --- a/internal/rpc/msg/verify.go +++ b/internal/rpc/msg/verify.go @@ -158,9 +158,6 @@ func (m *msgServer) encapsulateMsgData(msg *sdkws.MsgData) { case constant.Custom: fallthrough case constant.Quote: - utils.SetSwitchFromOptions(msg.Options, constant.IsConversationUpdate, true) - utils.SetSwitchFromOptions(msg.Options, constant.IsUnreadCount, true) - utils.SetSwitchFromOptions(msg.Options, constant.IsSenderSync, true) case constant.Revoke: utils.SetSwitchFromOptions(msg.Options, constant.IsUnreadCount, false) utils.SetSwitchFromOptions(msg.Options, constant.IsOfflinePush, false)