Run swiftformat.

This commit is contained in:
Doug
2026-07-02 10:35:10 +01:00
committed by Doug
parent e3ac4a0b6c
commit f2d08c23a3
2 changed files with 3 additions and 3 deletions
@@ -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
}