summary refs log tree commit diff
path: root/changelog.d
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-02-10 08:09:47 -0500
committerGitHub <noreply@github.com>2023-02-10 08:09:47 -0500
commita481fb9f98ad10e5e129bdc7664c59498a7332f6 (patch)
tree00342e1d3f79dd17f01edacd098831ab1c94864b /changelog.d
parentFix exception on start up about device lists (#15041) (diff)
downloadsynapse-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')
-rw-r--r--changelog.d/15040.misc1
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`.