Skip to content

Commit

Permalink
Use correct integer value for forgotten (fix Postgres)
Browse files Browse the repository at this point in the history
  • Loading branch information
MadLittleMods committed Oct 15, 2024
1 parent 9d2586b commit 9fda8d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/storage/databases/main/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -1889,7 +1889,7 @@ def _update_current_state_txn(
membership_info.membership,
# Since this is a new membership, it isn't forgotten anymore (which
# matches how Synapse currently thinks about the forgotten status)
False,
0,
# XXX: We do not use `membership_info.membership_event_stream_ordering` here
# because it is an unreliable value. See XXX note above.
membership_info.membership_event_id,
Expand Down Expand Up @@ -2907,7 +2907,7 @@ def _store_room_members_txn(
"membership": event.membership,
# Since this is a new membership, it isn't forgotten anymore (which
# matches how Synapse currently thinks about the forgotten status)
"forgotten": False,
"forgotten": 0,
"event_stream_ordering": event.internal_metadata.stream_ordering,
"event_instance_name": event.internal_metadata.instance_name,
}
Expand Down

0 comments on commit 9fda8d0

Please sign in to comment.