Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] MarkConversationMessageAsRead failed to set hasReadTime #540

Open
zhaolibo1989 opened this issue May 8, 2024 · 2 comments
Open

[BUG] MarkConversationMessageAsRead failed to set hasReadTime #540

zhaolibo1989 opened this issue May 8, 2024 · 2 comments
Labels
bug Categorizes issue or PR as related to a bug.

Comments

@zhaolibo1989
Copy link
Contributor

OpenIM Server Version

3.4.0

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

中文版本:

  1. 用户 A 和用户 B 单聊,开启阅后即焚功能。时间建议设置较长,如 5 分钟及以上。
  2. 用户 B 退出 APP ( SDK 停止运行)。
  3. 用户 A 向 B 连续发送 52 条消息。假设序号分别为 1, 2, ... 52
  4. 用户 B 打开 APP ,进入会话页,查看新消息。登录 SDK ,查询历史消息,每页 20 条,第一页查询完成后 MarkConversationMessageAsRead 设置会话已读,继续查询历史页(第二页和第三页)。
  5. 查询第三页时,序号为 1 的消息,标记为已读(isRead),但没有设置已读时间(hasReadTime)。无法完成焚烧倒计时的计算。

English:

  1. User A and User B are starting a single chat with the private-chat feature enabled. It is recommended to set a longer duration, such as 5 minutes or more.
  2. User B exits the APP (SDK stops running).
  3. User A sends 52 consecutive messages to B. Let's assume the sequence numbers are 1, 2, ..., 52.
  4. User B opens the APP, goes to the conversation page, and checks for new messages. APP login to the SDK, query the historical messages, 20 per page. After the first page is queried, set the conversation as read using MarkConversationMessageAsRead, and then continue to query the historical pages (the second and third pages).
  5. When querying the third page, the message with the sequence number 1 is marked as read (isRead), but the read time (hasReadTime) is not set. Unable to complete the burning countdown calculation.

Screenshots Link

No response

@zhaolibo1989 zhaolibo1989 added the bug Categorizes issue or PR as related to a bug. label May 8, 2024
@kubbot
Copy link
Contributor

kubbot commented Jul 7, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@kubbot kubbot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 7, 2024
@kubbot
Copy link
Contributor

kubbot commented Jul 14, 2024

This issue was closed because it has been stalled for 7 days with no activity.

@kubbot kubbot closed this as completed Jul 14, 2024
@github-actions github-actions bot reopened this Aug 8, 2024
@mo3et mo3et removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants