mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-23 19:33:44 +00:00
Simplify if
This commit is contained in:
1 parent
924c1bfd0e
commit
fa8e3b62c7
1 file changed
+2
-4
@@ -1258,10 +1258,8 @@ class SlidingSyncRestServlet(RestServlet):
|
||||
"rooms": extensions.typing.room_id_to_typing_map,
|
||||
}
|
||||
|
||||
if (
|
||||
extensions.thread_subscriptions is not None
|
||||
and extensions.thread_subscriptions
|
||||
):
|
||||
# excludes both None and falsy `thread_subscriptions`
|
||||
if extensions.thread_subscriptions:
|
||||
serialized_extensions["io.element.msc4308.thread_subscriptions"] = (
|
||||
_serialise_thread_subscriptions(extensions.thread_subscriptions)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user