mirror of
https://github.com/element-hq/synapse
synced 2024-09-28 16:32:40 +00:00
Explain why no to_token
for global account data
This commit is contained in:
parent
7aa0519589
commit
a6e5798dd3
1 changed files with 3 additions and 0 deletions
|
@ -641,6 +641,9 @@ class SlidingSyncHandler:
|
|||
# `is_direct` on membership events because that property only appears for
|
||||
# the invitee membership event (doesn't show up for the inviter). Account
|
||||
# data is set by the client so it needs to be scrutinized.
|
||||
#
|
||||
# We're unable to take `to_token` into account for global account data since
|
||||
# we only keep track of the latest account data for the user.
|
||||
dm_map = await self.store.get_global_account_data_by_type_for_user(
|
||||
user_id, AccountDataTypes.DIRECT
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue