encryption: Send to device messages to every device of a user.

This commit is contained in:
poljar (Damir Jelić) 2018-05-15 23:24:14 +02:00
parent 2bf9766276
commit 47fae308e0

View file

@ -409,9 +409,10 @@ class Olm():
} }
} }
to_device_dict["messages"][user] = { if user not in to_device_dict["messages"]:
key.device_id: olm_dict to_device_dict["messages"][user] = {}
}
to_device_dict["messages"][user][key.device_id] = olm_dict
return to_device_dict return to_device_dict