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

オープン
#6,566 コメント 12 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@diegolmello がすでに取り組んでいます。

2025年8月15日 から。

  • #6567 @paviad による — マージされずにクローズ

評価

この issue はまだ評価されていません。

説明

🐛 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

主要言語
TypeScript
スター
2.4k
フォーク
1.5k
平均マージ
1日 15時間
マージ済み PR(30日)
29

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

RocketChat/Rocket.Chat.ReactNative のほかの issue

RocketChat/Rocket.Chat.ReactNative の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。