mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-11 13:59:13 +00:00
Fix trailing closure warnings
This commit is contained in:
parent
56fef88bf8
commit
54111535ba
@ -525,11 +525,11 @@ class ClientProxy: ClientProxyProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func roomSummaryForIdentifier(_ identifier: String) -> RoomSummary? {
|
func roomSummaryForIdentifier(_ identifier: String) -> RoomSummary? {
|
||||||
staticRoomSummaryProvider.roomListPublisher.value.first(where: { $0.id == identifier })
|
staticRoomSummaryProvider.roomListPublisher.value.first { $0.id == identifier }
|
||||||
}
|
}
|
||||||
|
|
||||||
func roomSummaryForAlias(_ alias: String) -> RoomSummary? {
|
func roomSummaryForAlias(_ alias: String) -> RoomSummary? {
|
||||||
staticRoomSummaryProvider.roomListPublisher.value.first(where: { $0.canonicalAlias == alias || $0.alternativeAliases.contains(alias) })
|
staticRoomSummaryProvider.roomListPublisher.value.first { $0.canonicalAlias == alias || $0.alternativeAliases.contains(alias) }
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadUserDisplayName() async -> Result<Void, ClientProxyError> {
|
func loadUserDisplayName() async -> Result<Void, ClientProxyError> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user