ソースを参照

Revert "Stop returning an unused column when handling new receipts. (#13933)" (#13935)

This reverts commit 7766bd5b35 (#13933).

The unused column is actually used, but much further down in the function.
tags/v1.69.0rc1
Patrick Cloke 1年前
committed by GitHub
コミット
1386ce4735
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
2個のファイルの変更2行の追加3行の削除
  1. +0
    -1
      changelog.d/13933.feature
  2. +2
    -2
      synapse/storage/databases/main/event_push_actions.py

+ 0
- 1
changelog.d/13933.feature ファイルの表示

@@ -1 +0,0 @@
Experimental support for thread-specific receipts ([MSC3771](https://github.com/matrix-org/matrix-spec-proposals/pull/3771)).

+ 2
- 2
synapse/storage/databases/main/event_push_actions.py ファイルの表示

@@ -1053,7 +1053,7 @@ class EventPushActionsWorkerStore(ReceiptsWorkerStore, StreamWorkerStore, SQLBas
)

sql = """
SELECT r.room_id, r.user_id, e.stream_ordering
SELECT r.stream_id, r.room_id, r.user_id, e.stream_ordering
FROM receipts_linearized AS r
INNER JOIN events AS e USING (event_id)
WHERE ? < r.stream_id AND r.stream_id <= ? AND user_id LIKE ?
@@ -1078,7 +1078,7 @@ class EventPushActionsWorkerStore(ReceiptsWorkerStore, StreamWorkerStore, SQLBas

# For each new read receipt we delete push actions from before it and
# recalculate the summary.
for room_id, user_id, stream_ordering in rows:
for _, room_id, user_id, stream_ordering in rows:
# Only handle our own read receipts.
if not self.hs.is_mine_id(user_id):
continue


読み込み中…
キャンセル
保存