mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Update the SDK and use RoomHero.status and subscribeToOwnProfile. (#5905)
* Update the SDK and hook up the status from Room Heroes. Also start requesting profiles via sss when the feature flag is enabled. * Add support for subscribing to your own profile.
This commit is contained in:
@@ -212,7 +212,11 @@ protocol ClientProxyProtocol: AnyObject {
|
||||
/// Will only work for rooms that are in our room list/local store
|
||||
func reportRoomForIdentifier(_ identifier: String, reason: String) async -> Result<Void, ClientProxyError>
|
||||
|
||||
@discardableResult func loadUserProfile() async -> Result<Void, ClientProxyError>
|
||||
/// Loads the user's own profile when the server doesn't support MSC4262 and both returns the profile
|
||||
/// as well as publishing it via ``userProfilePublisher``.
|
||||
///
|
||||
/// When the server does support the MSC, then the client automatically publishes profile and keeps it up to date.
|
||||
@discardableResult func loadUserProfileIfNeeded() async -> Result<Void, ClientProxyError>
|
||||
func setUserDisplayName(_ name: String) async -> Result<Void, ClientProxyError>
|
||||
func setUserAvatar(media: MediaInfo) async -> Result<Void, ClientProxyError>
|
||||
func removeUserAvatar() async -> Result<Void, ClientProxyError>
|
||||
|
||||
Reference in New Issue
Block a user