mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Run swiftformat.
This commit is contained in:
@@ -355,7 +355,7 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
|
||||
@@ -800,7 +800,7 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
||||
MXLog.info("Received typing notification update, typingUsers: \(typingUserIDs)")
|
||||
|
||||
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
|
||||
} else {
|
||||
return userID
|
||||
|
||||
@@ -121,7 +121,7 @@ extension RoomInfoProxyProtocol {
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user