pull/853/head
pluto 2 years ago
parent a0a2fd470e
commit 3edf7ef7bf

@ -301,6 +301,7 @@ func (s *userServer) SetUserStatus(ctx context.Context, req *pbuser.SetUserStatu
Status: value.Status, Status: value.Status,
PlatformID: value.PlatformID, PlatformID: value.PlatformID,
} }
log.ZDebug(ctx, "============UserStatusChangeNotification pre===========", "tips", tips)
s.userNotificationSender.UserStatusChangeNotification(ctx, tips) s.userNotificationSender.UserStatusChangeNotification(ctx, tips)
} }
} }

@ -21,6 +21,7 @@ import (
"github.com/OpenIMSDK/Open-IM-Server/pkg/rpcclient" "github.com/OpenIMSDK/Open-IM-Server/pkg/rpcclient"
"github.com/OpenIMSDK/protocol/constant" "github.com/OpenIMSDK/protocol/constant"
"github.com/OpenIMSDK/protocol/sdkws" "github.com/OpenIMSDK/protocol/sdkws"
"github.com/OpenIMSDK/tools/log"
) )
type UserNotificationSender struct { type UserNotificationSender struct {
@ -99,5 +100,6 @@ func (u *UserNotificationSender) UserStatusChangeNotification(
ctx context.Context, ctx context.Context,
tips *sdkws.UserStatusChangeTips, tips *sdkws.UserStatusChangeTips,
) error { ) error {
log.ZDebug(ctx, "============UserStatusChangeNotification pre===========", "tips", tips)
return u.Notification(ctx, tips.FromUserID, tips.ToUserID, constant.UserStatusChangeNotification, tips) return u.Notification(ctx, tips.FromUserID, tips.ToUserID, constant.UserStatusChangeNotification, tips)
} }

Loading…
Cancel
Save