Audit and validate event rejection checks that may no longer be necessary

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

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

2025年10月7日 から。

評価

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

説明

Context

Following the refactor in #252, specifically the discussion at https://github.com/RocketChat/homeserver/pull/252#discussion_r2410607387, we need to audit all places where events are checked for rejection and errors are rethrown.

Task

Check and validate all places in the codebase where:

  • An event is checked using .rejected property
  • An error is thrown based on .rejectReason or .rejectedReason

According to @debdutdeb, these checks should no longer be necessary after the state calculation refactor.

Location Examples

  • packages/federation-sdk/src/services/room.service.ts line ~929-933
  • Search for patterns like if (.*event.*\.rejected) across the codebase

Expected Outcome

Either:

  • Remove unnecessary rejection checks if they're redundant
  • Document why certain checks are still needed
  • Ensure proper error handling is in place where rejection checks are removed

Related

主要言語
TypeScript
スター
17
フォーク
18
平均マージ
2時間 11分
マージ済み PR(30日)
2

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

RocketChat/homeserver のほかの issue

RocketChat/homeserver の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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