Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Include whether the requesting user has participated in a thread. #11577

Merged
merged 6 commits into from
Jan 18, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion synapse/storage/databases/main/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,6 @@ def _get_thread_summary_txn(
"""

txn.execute(sql, (event_id, room_id, RelationTypes.THREAD, user_id))
row = txn.fetchone()
clokep marked this conversation as resolved.
Show resolved Hide resolved
participated = bool(txn.fetchone())

return count, latest_event_id, participated
Expand Down