mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Run swiftformat.
This commit is contained in:
@@ -355,7 +355,7 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getMember(userID: String) async -> Result<RoomMemberProxyProtocol, RoomProxyError> {
|
func getMember(userID: String) async -> Result<RoomMemberProxyProtocol, RoomProxyError> {
|
||||||
if let member = membersPublisher.value.filter({ $0.userID == userID }).first {
|
if let member = membersPublisher.value.first(where: { $0.userID == userID }) {
|
||||||
return .success(member)
|
return .success(member)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -800,7 +800,7 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
|||||||
MXLog.info("Received typing notification update, typingUsers: \(typingUserIDs)")
|
MXLog.info("Received typing notification update, typingUsers: \(typingUserIDs)")
|
||||||
|
|
||||||
let typingMembers = typingUserIDs.compactMap { userID in
|
let typingMembers = typingUserIDs.compactMap { userID in
|
||||||
if let member = self.membersPublisher.value.filter({ $0.userID == userID }).first {
|
if let member = self.membersPublisher.value.first(where: { $0.userID == userID }) {
|
||||||
return member.displayName ?? member.userID
|
return member.displayName ?? member.userID
|
||||||
} else {
|
} else {
|
||||||
return userID
|
return userID
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ extension RoomInfoProxyProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Otherwise check the alternative aliases and return the first one that matches
|
// Otherwise check the alternative aliases and return the first one that matches
|
||||||
if let matchingAlternativeAlias = alternativeAliases.filter({ $0.range(of: serverName) != nil }).first {
|
if let matchingAlternativeAlias = alternativeAliases.first(where: { $0.range(of: serverName) != nil }) {
|
||||||
return matchingAlternativeAlias
|
return matchingAlternativeAlias
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user