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

Commit 9c68d71

Browse files
committed
Beeper hack: don't include fixed bridge devices in device inbox
1 parent 9791865 commit 9c68d71

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

synapse/storage/databases/main/deviceinbox.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,10 @@ def _add_messages_to_local_device_inbox_txn(
779779

780780
message_json = json_encoder.encode(messages_by_device["*"])
781781
for device_id in devices:
782+
# Beeper hack: ignore hardcoded bridge devices as they will never
783+
# read the messages and fill up the table indefinitely.
784+
if device_id.endswith(" Bridge"):
785+
continue
782786
# Add the message for all devices for this user on this
783787
# server.
784788
messages_json_for_user[device_id] = message_json

0 commit comments

Comments
 (0)