diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-02-10 08:09:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 08:09:47 -0500 |
commit | a481fb9f98ad10e5e129bdc7664c59498a7332f6 (patch) | |
tree | 00342e1d3f79dd17f01edacd098831ab1c94864b /changelog.d/15040.misc | |
parent | Fix exception on start up about device lists (#15041) (diff) | |
download | synapse-a481fb9f98ad10e5e129bdc7664c59498a7332f6.tar.xz |
Refactor get_user_devices_from_cache to avoid mutating cached values. (#15040)
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.
Diffstat (limited to 'changelog.d/15040.misc')
-rw-r--r-- | changelog.d/15040.misc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/15040.misc b/changelog.d/15040.misc new file mode 100644 index 0000000000..ca129b64af --- /dev/null +++ b/changelog.d/15040.misc @@ -0,0 +1 @@ +Avoid mutating a cached value in `get_user_devices_from_cache`. |