Rocket.Chat.iOS icon indicating copy to clipboard operation
Rocket.Chat.iOS copied to clipboard

[BUG] Same User Infomation In Chat Page.

Open JoyWang1010 opened this issue 7 years ago • 0 comments

  • Your Rocket.Chat app version: 3.3.0(234)
  • Your Rocket.Chat server version: 0.73.0
  • Device (or Simulator) you're running with: iPhone X (iOS12.1)

在搜索用户和聊天室时,调用接口“/api/v1/spotlight”返回的用户列表和聊天室列表,用户列表中没有聊天记录的用户并没有返回rid字段,但是也被存入了本地数据库中并且rid字段为空string。当点击没有聊天记录的用户进入聊天页面时,聊天页面是通过用户rid在本地数据库中查找用户信息的,由于rid为空,所以查询到的数据是数据库中第一个rid为空的用户信息。造成只要点击没有聊天记录的用户都是同一个用户的bug。

When searching for users and chat rooms, call the user list and chat room list returned by the interface "/api/v1/spotlight". The user who has no chat history in the user list does not return the rid field, but is also stored in the local database. And the rid field is empty string. When a user who clicks without a chat record enters the chat page, the chat page searches for the user information in the local database through the user rid. Since the rid is empty, the data that is queried is the first user information in the database that is empty. A bug that causes users who have no chat history to click on the same user.

clipboard

JoyWang1010 avatar Jan 03 '19 11:01 JoyWang1010