Conversation
… a Destination This make its usage clearer and makes different styles reusable
| static func pinnedEventStringBuilder(userID: String) -> Self { | ||
| RoomEventStringBuilder(stateEventStringBuilder: .init(userID: userID, | ||
| shouldDisambiguateDisplayNames: false), | ||
| shouldDisambiguateDisplayNames: true), |
There was a problem hiding this comment.
Yes.. you said:
It’s for the stable IDs and we only need it when switching from one timeline (e.g. live) to another (e.g. detached) so that SwiftUI animations don’t go nuts. Outside of that it adds needless work.
but it seems to be used to build the string for the pinned events banner, and now for thread list events. Element Web disambiguates them too:
So I left these here to remember to have a conversation about it: I'm inclined to always default this to true, the extra work is neglijable.
ElementX/Sources/Services/Room/RoomThreadListServiceProxy.swift
Outdated
Show resolved
Hide resolved
ElementX/Sources/Screens/RoomThreadListScreen/View/RoomThreadListScreen.swift
Show resolved
Hide resolved
ElementX/Sources/Screens/RoomThreadListScreen/View/RoomThreadListScreen.swift
Outdated
Show resolved
Hide resolved
ElementX/Sources/Screens/RoomThreadListScreen/View/RoomThreadListScreen.swift
Outdated
Show resolved
Hide resolved
ElementX/Sources/Screens/Settings/DeveloperOptionsScreen/View/DeveloperOptionsScreen.swift
Show resolved
Hide resolved
There was a problem hiding this comment.
Not massively important but I wonder if:
a) We should use monospacedDigits on the count
b) We should reserve a minimum amount of space so that the small avatars remain aligned for at least e.g. 1-99.
There was a problem hiding this comment.
Let me have a play and see how this looks irl
…omProxy` Also update the sdk and app mocks and add a simple `RoomThreadListServiceProxyMock`
…Service It will automatically paginate to fill the screen and update the list as updates come in.
25be4aa to
eae3748
Compare
This series of patches introduces a new screen that works with a new RustSDK API to render a Room's list of threads.
Requires matrix-org/matrix-rust-sdk#6335