Skip to content

Commit

Permalink
use digit for boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Jan 7, 2025
1 parent e76f94e commit 62e6a04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/storage/databases/main/roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,7 @@ async def set_room_participation(self, room_id: str, user_id: str) -> None:
await self.db_pool.simple_update(
"room_memberships",
{"user_id": user_id, "room_id": room_id},
{"participant": True},
{"participant": 1},
"update_room_participation",
)

Expand Down Expand Up @@ -1713,7 +1713,7 @@ def _background_populate_participant_per_room_txn(
txn,
table="room_memberships",
keyvalues={"user_id": participant},
updatevalues={"participant": True},
updatevalues={"participant": 1},
)

current_room_id = await self.db_pool.runInteraction(
Expand Down

0 comments on commit 62e6a04

Please sign in to comment.