bug: starting an encrypted direct conversation from mobile fails to find key

Đang mở
#6,566 12 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@diegolmello đang làm issue này rồi.

Từ ngày 15/8/2025.

  • #6567 của @paviad — đã đóng, không merge

Đánh giá

Issue này chưa được đánh giá.

Mô tả

🐛 bug
Describe the Bug

There is a race condition when starting a direct message from mobile to a recipient on the server website. The recipient will often create the room key and create a E2ESuggestedKey in the sender's subscription. But the sender will not evaluate it because it does not listen to subscription changes yet (it lost the race).

Steps to Reproduce
  1. Log in with the recipient user to the server website.
  2. Make sure there is no direct message room existing between the sender and recipient.
  3. Use the sender's mobile device to start a direct message to the recipient.
  4. You will 90% of the time see that you should wait a while to get the E2E key and that will never happen if nothing else is done.
Expected Behavior

Starting a direct message with someone should allow sending a message immediately, without waiting for keys.

Actual Behavior

Starting a direct message for the first time with a recipient which is logged on to the server website will result in a "wait for keys" message that will not go away on its own.

Image
Rocket.Chat Server Version

7.9.3

Rocket.Chat App Version

4.63

Device Name

iPhone 16 Pro, Android Pixel 7

OS Version

iOS 16, Android API 35

Additional Context

No response

Ngôn ngữ chính
TypeScript
Star
2.4k
Fork
1.5k
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
29

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của RocketChat/Rocket.Chat.ReactNative

Tất cả issue của RocketChat/Rocket.Chat.ReactNative

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.