mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +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:
@@ -94,6 +94,11 @@ extension BaseRoomInfoProxyProtocol {
|
||||
|
||||
return .room(id: id, name: displayName, avatarURL: avatarURL)
|
||||
}
|
||||
|
||||
var statusEmoji: Character? {
|
||||
guard case let .heroes(heroes) = avatar else { return nil }
|
||||
return heroes.first?.status.displayed?.emoji
|
||||
}
|
||||
}
|
||||
|
||||
extension RoomInfoProxyProtocol {
|
||||
|
||||
@@ -186,7 +186,7 @@ nonisolated extension RoomSummary {
|
||||
}
|
||||
|
||||
var statusEmoji: Character? {
|
||||
guard isDirect, case let .heroes(heroes) = avatar, heroes.count == 1 else { return nil }
|
||||
guard case let .heroes(heroes) = avatar else { return nil }
|
||||
return heroes.first?.status.displayed?.emoji
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user