Skip to content

Commit

Permalink
fix: user online status pb change
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon <[email protected]>
  • Loading branch information
FGadvancer committed Aug 18, 2023
1 parent 86935e3 commit 80c5959
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require (
require golang.org/x/net v0.11.0

require (
github.com/OpenIMSDK/protocol v0.0.10
github.com/OpenIMSDK/protocol v0.0.12
github.com/OpenIMSDK/tools v0.0.5
github.com/google/go-cmp v0.5.9
golang.org/x/image v0.9.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/OpenIMSDK/protocol v0.0.10 h1:OiJR2BAAJjuKKK8KPxYZdJCwOSzMMxwF5fnJdOmLPdQ=
github.com/OpenIMSDK/protocol v0.0.10/go.mod h1:F25dFrwrIx3lkNoiuf6FkCfxuwf8L4Z8UIsdTHP/r0Y=
github.com/OpenIMSDK/protocol v0.0.12 h1:79rBgpKBF4TMy5tkLH3DQNiZFVmxKMP7VyX+kmJh4d8=
github.com/OpenIMSDK/protocol v0.0.12/go.mod h1:F25dFrwrIx3lkNoiuf6FkCfxuwf8L4Z8UIsdTHP/r0Y=
github.com/OpenIMSDK/tools v0.0.5 h1:yBVHJ3EpIDcp8VFKPjuGr6MQvFa3t4JByZ+vmeC06/Q=
github.com/OpenIMSDK/tools v0.0.5/go.mod h1:eg+q4A34Qmu73xkY0mt37FHGMCMfC6CtmOnm0kFEGFI=
github.com/antonfisher/nested-logrus-formatter v1.3.1 h1:NFJIr+pzwv5QLHTPyKz9UMEoHck02Q9L0FP13b/xSbQ=
Expand Down
6 changes: 3 additions & 3 deletions internal/user/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ func (u *User) SyncLoginUserInfo(ctx context.Context) error {

func (u *User) SyncUserStatus(ctx context.Context, fromId string, toUserID string, status int32, platformID int32, c func(userID string, statusMap *userPb.OnlineStatus)) {
statusMap := userPb.OnlineStatus{
UserID: fromId,
Status: status,
PlatformID: platformID,
UserID: fromId,
Status: status,
PlatformIDs: []int32{platformID},
}
c(fromId, &statusMap)
u.listener.OnUserStatusChanged(utils.StructToJsonString(statusMap))
Expand Down

0 comments on commit 80c5959

Please sign in to comment.