diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-10-06 11:41:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 11:41:57 -0400 |
commit | 06bbf1029cf2558213646d3b692621bed5178066 (patch) | |
tree | 481a2ddce7df9aa124661c9a582bc6efec1d3603 /synapse/api | |
parent | Return ThumbnailInfo in more places (#16438) (diff) | |
download | synapse-06bbf1029cf2558213646d3b692621bed5178066.tar.xz |
Convert simple_select_list_paginate_txn to return tuples. (#16433)
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/presence.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/synapse/api/presence.py b/synapse/api/presence.py index b78f419994..afef6712e1 100644 --- a/synapse/api/presence.py +++ b/synapse/api/presence.py @@ -80,10 +80,6 @@ class UserPresenceState: def as_dict(self) -> JsonDict: return attr.asdict(self) - @staticmethod - def from_dict(d: JsonDict) -> "UserPresenceState": - return UserPresenceState(**d) - def copy_and_replace(self, **kwargs: Any) -> "UserPresenceState": return attr.evolve(self, **kwargs) |