"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "synapse/rest/client/v2_alpha/sync.py" between
synapse-1.38.0.tar.gz and synapse-1.38.1.tar.gz

About: Synapse is a reference "homeserver" implementation of Matrix (an ecosystem for open federated Instant Messaging and VoIP).

sync.py  (synapse-1.38.0):sync.py  (synapse-1.38.1)
skipping to change at line 254 skipping to change at line 254
) )
if sync_result.to_device: if sync_result.to_device:
response["to_device"] = {"events": sync_result.to_device} response["to_device"] = {"events": sync_result.to_device}
if sync_result.device_lists.changed: if sync_result.device_lists.changed:
response["device_lists"]["changed"] = list(sync_result.device_lists. changed) response["device_lists"]["changed"] = list(sync_result.device_lists. changed)
if sync_result.device_lists.left: if sync_result.device_lists.left:
response["device_lists"]["left"] = list(sync_result.device_lists.lef t) response["device_lists"]["left"] = list(sync_result.device_lists.lef t)
if sync_result.device_one_time_keys_count: # We always include this because https://github.com/vector-im/element-an
response[ droid/issues/3725
"device_one_time_keys_count" # The spec isn't terribly clear on when this can be omitted and how a cl
] = sync_result.device_one_time_keys_count ient would tell
# the difference between "no keys present" and "nothing changed" in term
s of whole field
# absent / individual key type entry absent
# Corresponding synapse issue: https://github.com/matrix-org/synapse/iss
response["device_one_time_keys_count"] = sync_result.device_one_time_key
if sync_result.device_unused_fallback_key_types: if sync_result.device_unused_fallback_key_types:
response[ response[
"org.matrix.msc2732.device_unused_fallback_key_types" "org.matrix.msc2732.device_unused_fallback_key_types"
] = sync_result.device_unused_fallback_key_types ] = sync_result.device_unused_fallback_key_types
if joined: if joined:
response["rooms"][Membership.JOIN] = joined response["rooms"][Membership.JOIN] = joined
if invited: if invited:
response["rooms"][Membership.INVITE] = invited response["rooms"][Membership.INVITE] = invited
if knocked: if knocked:
 End of changes. 1 change blocks. 
4 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)