mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-30 00:14:57 +03:00
a481fb9f98
The previous version of the code could mutate a cached value, but only if the input requested all devices of a user *and* a specific device. To avoid this nonsensical situation we no longer fetch a specific device ID if all of a user's devices are returned.
1 line
64 B
Text
1 line
64 B
Text
Avoid mutating a cached value in `get_user_devices_from_cache`.
|