mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
Fix weakref_slot parameter for room member storage attrs. (#10642)
Follow-up to #10629 which set it to true, not false.
This commit is contained in:
parent
bec01c0758
commit
d9856d9150
1
changelog.d/10642.misc
Normal file
1
changelog.d/10642.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Convert room member storage tuples to `attrs` classes.
|
@ -23,7 +23,7 @@ from synapse.types import PersistedEventPosition
|
|||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
@attr.s(slots=True, frozen=True, weakref_slot=True, auto_attribs=True)
|
@attr.s(slots=True, frozen=True, weakref_slot=False, auto_attribs=True)
|
||||||
class RoomsForUser:
|
class RoomsForUser:
|
||||||
room_id: str
|
room_id: str
|
||||||
sender: str
|
sender: str
|
||||||
@ -32,19 +32,19 @@ class RoomsForUser:
|
|||||||
stream_ordering: int
|
stream_ordering: int
|
||||||
|
|
||||||
|
|
||||||
@attr.s(slots=True, frozen=True, weakref_slot=True, auto_attribs=True)
|
@attr.s(slots=True, frozen=True, weakref_slot=False, auto_attribs=True)
|
||||||
class GetRoomsForUserWithStreamOrdering:
|
class GetRoomsForUserWithStreamOrdering:
|
||||||
room_id: str
|
room_id: str
|
||||||
event_pos: PersistedEventPosition
|
event_pos: PersistedEventPosition
|
||||||
|
|
||||||
|
|
||||||
@attr.s(slots=True, frozen=True, weakref_slot=True, auto_attribs=True)
|
@attr.s(slots=True, frozen=True, weakref_slot=False, auto_attribs=True)
|
||||||
class ProfileInfo:
|
class ProfileInfo:
|
||||||
avatar_url: Optional[str]
|
avatar_url: Optional[str]
|
||||||
display_name: Optional[str]
|
display_name: Optional[str]
|
||||||
|
|
||||||
|
|
||||||
@attr.s(slots=True, frozen=True, weakref_slot=True, auto_attribs=True)
|
@attr.s(slots=True, frozen=True, weakref_slot=False, auto_attribs=True)
|
||||||
class MemberSummary:
|
class MemberSummary:
|
||||||
# A truncated list of (user_id, event_id) tuples for users of a given
|
# A truncated list of (user_id, event_id) tuples for users of a given
|
||||||
# membership type, suitable for use in calculating heroes for a room.
|
# membership type, suitable for use in calculating heroes for a room.
|
||||||
|
Loading…
Reference in New Issue
Block a user