dont spam the admin room with all updates

master
lub 5 years ago
parent 90458f255e
commit 13f48f9d8c

@ -146,6 +146,8 @@ async def main():
'formatted_body': get_formatted_body(post)
}
for room_id in matrix[mxid].rooms:
if room_id != admin_room:
# don't send updates to the admin room
await matrix[mxid].room_send(room_id=room_id,
message_type='m.room.message',
content=content)

Loading…
Cancel
Save