From 51fef3d4dabea936951210223d1e48d5a180b760 Mon Sep 17 00:00:00 2001 From: pluto <2631223275@qq.com> Date: Mon, 14 Aug 2023 11:44:46 +0800 Subject: [PATCH] add SingleChatType --- internal/rpc/user/user.go | 2 +- pkg/rpcclient/msg.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/rpc/user/user.go b/internal/rpc/user/user.go index 4eca736f9..524c38684 100644 --- a/internal/rpc/user/user.go +++ b/internal/rpc/user/user.go @@ -295,7 +295,7 @@ func (s *userServer) SetUserStatus(ctx context.Context, req *pbuser.SetUserStatu if err != nil { return nil, err } - log.ZDebug(ctx, "============UserStatusChangeNotification pre pre===========", list) + log.ZDebug(ctx, "============UserStatusChangeNotification pre pre===========", "list", list) for _, userID := range list { tips := &sdkws.UserStatusChangeTips{ FromUserID: value.UserID, diff --git a/pkg/rpcclient/msg.go b/pkg/rpcclient/msg.go index 205261dd9..19cc4ffc1 100644 --- a/pkg/rpcclient/msg.go +++ b/pkg/rpcclient/msg.go @@ -102,7 +102,8 @@ func newSessionTypeConf() map[int32]int32 { constant.GroupInfoSetAnnouncementNotification: constant.SuperGroupChatType, constant.GroupInfoSetNameNotification: constant.SuperGroupChatType, // user - constant.UserInfoUpdatedNotification: constant.SingleChatType, + constant.UserInfoUpdatedNotification: constant.SingleChatType, + constant.UserStatusChangeNotification: constant.SingleChatType, // friend constant.FriendApplicationNotification: constant.SingleChatType, constant.FriendApplicationApprovedNotification: constant.SingleChatType,