encryption: Send to device messages to every device of a user.
This commit is contained in:
parent
2bf9766276
commit
47fae308e0
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue