-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add room heroes to RoomSubscription
#2702
Comments
Implementation inside Ruma is here, ruma/ruma#1691. |
Implementation inside the SDK, #3441. |
Another PR in Ruma, ruma/ruma#1818 |
Closing this ar per the above ^ |
Closed by #3461 |
Reopening this issue, as whilst looking at exposing these properties through the FFI, I noticed that the heroes stored in the SDK are missing their avatar URLs. It would be great to have access to these as there are future designs where small rooms without an |
Note: from what I can tell, this solution of storing an array of IDs and a separate array of display names would probably need to switch to storing a single array of heroes instead. |
If by |
Sure, I'm happy to give it a go whilst I'm here 👍 |
This PR makes 2 changes: - Updates the storage of room heroes to be a single array containing the user's complete profile. - Exposes these to the FFI so that client apps can use these for avatar colours/clusters. Closes matrix-org#2702 (again, now with avatars 🖼️) --- * rooms: Store heroes as a complete user profile. * ffi: Expose room heroes on Room and RoomInfo. * chore: Remove TODO comment. * Update crates/matrix-sdk-base/src/rooms/normal.rs Signed-off-by: Benjamin Bouvier <[email protected]> --------- Signed-off-by: Benjamin Bouvier <[email protected]> Co-authored-by: Benjamin Bouvier <[email protected]>
Now that matrix-org/sliding-sync#304 has been merged, there's a new parameter that can be included on
RoomSubscription
-include_heroes: Bool
which will in turn include the heroes in the sync response.The text was updated successfully, but these errors were encountered: