Skip to content

Commit

Permalink
Fix chat updates user information data bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
wubenqi committed Jul 25, 2018
1 parent 1860ae0 commit a5df845
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (s *ChannelsServiceImpl) ChannelsCreateChannel(ctx context.Context, request
// //}}
// //updates.AddUpdate(updateChatParticipants.To_Update())
// updates.AddUpdateNewMessage(inbox.Message)
// //updates.AddUsers(user.GetUsersBySelfAndIDList(md.UserId, chat.GetChatParticipantIdList()))
// //updates.AddUsers(user.GetUsersBySelfAndIDList(nbox.UserId, chat.GetChatParticipantIdList()))
// updates.AddChat(channel.ToChannel(inbox.UserId))
// sync_client.GetSyncClient().PushToUserUpdatesData(inbox.UserId, updates.ToUpdates())
//}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (s *MessagesServiceImpl) MessagesAddChatUser(ctx context.Context, request *
updates := update2.NewUpdatesLogic(md.UserId)
updates.AddUpdate(updateChatParticipants.To_Update())
updates.AddUpdateNewMessage(inbox.Message)
updates.AddUsers(s.UserModel.GetUsersBySelfAndIDList(md.UserId, chatLogic.GetChatParticipantIdList()))
updates.AddUsers(s.UserModel.GetUsersBySelfAndIDList(inbox.UserId, chatLogic.GetChatParticipantIdList()))
updates.AddChat(chatLogic.ToChat(inbox.UserId))
sync_client.GetSyncClient().PushToUserUpdatesData(inbox.UserId, updates.ToUpdates())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (s *MessagesServiceImpl) MessagesCreateChat(ctx context.Context, request *m
}}
updates.AddUpdate(updateChatParticipants.To_Update())
updates.AddUpdateNewMessage(inbox.Message)
updates.AddUsers(s.UserModel.GetUsersBySelfAndIDList(md.UserId, chat.GetChatParticipantIdList()))
updates.AddUsers(s.UserModel.GetUsersBySelfAndIDList(inbox.UserId, chat.GetChatParticipantIdList()))
updates.AddChat(chat.ToChat(inbox.UserId))
sync_client.GetSyncClient().PushToUserUpdatesData(inbox.UserId, updates.ToUpdates())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (s *MessagesServiceImpl) MessagesDeleteChatUser(ctx context.Context, reques
updates := update2.NewUpdatesLogic(md.UserId)
updates.AddUpdate(updateChatParticipants.To_Update())
updates.AddUpdateNewMessage(inbox.Message)
updates.AddUsers(s.UserModel.GetUsersBySelfAndIDList(md.UserId, chatLogic.GetChatParticipantIdList()))
updates.AddUsers(s.UserModel.GetUsersBySelfAndIDList(inbox.UserId, chatLogic.GetChatParticipantIdList()))
updates.AddChat(chatLogic.ToChat(inbox.UserId))
sync_client.GetSyncClient().PushToUserUpdatesData(inbox.UserId, updates.ToUpdates())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (s *MessagesServiceImpl) MessagesEditChatPhoto(ctx context.Context, request
updates := update2.NewUpdatesLogic(md.UserId)
updates.AddUpdate(updateChatParticipants.To_Update())
updates.AddUpdateNewMessage(inbox.Message)
updates.AddUsers(s.UserModel.GetUsersBySelfAndIDList(md.UserId, []int32{md.UserId}))
updates.AddUsers(s.UserModel.GetUsersBySelfAndIDList(inbox.UserId, []int32{md.UserId}))
updates.AddChat(chatLogic.ToChat(inbox.UserId))
sync_client.GetSyncClient().PushToUserUpdatesData(inbox.UserId, updates.ToUpdates())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (s *MessagesServiceImpl) MessagesEditChatTitle(ctx context.Context, request
updates := update2.NewUpdatesLogic(md.UserId)
updates.AddUpdate(updateChatParticipants.To_Update())
updates.AddUpdateNewMessage(inbox.Message)
updates.AddUsers(s.UserModel.GetUsersBySelfAndIDList(md.UserId, []int32{md.UserId}))
updates.AddUsers(s.UserModel.GetUsersBySelfAndIDList(inbox.UserId, []int32{md.UserId}))
updates.AddChat(chatLogic.ToChat(inbox.UserId))
sync_client.GetSyncClient().PushToUserUpdatesData(inbox.UserId, updates.ToUpdates())
}
Expand Down

0 comments on commit a5df845

Please sign in to comment.