mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 20:09:04 +00:00
Rename UserProfileProxy to UserProfile. It's a pure struct and proxies nothing.
Also remove the redundant `userID` property given `id` already exists (for Identifiable conformance).
This commit is contained in:
@@ -64,7 +64,7 @@ enum InviteUsersFlow: Hashable {
|
||||
/// Invite people into the current room.
|
||||
case existingRoom
|
||||
/// Start a new room with the given invitee pre-selected and mandatory.
|
||||
case newRoom(mandatoryInvitee: UserProfileProxy)
|
||||
case newRoom(mandatoryInvitee: UserProfile)
|
||||
}
|
||||
|
||||
// swiftlint:disable:next type_body_length
|
||||
|
||||
@@ -405,7 +405,7 @@ class UserSessionFlowCoordinator: FlowCoordinatorProtocol {
|
||||
|
||||
MXLog.info("Received session verification request")
|
||||
|
||||
if details.senderProfile.userID == userSession.clientProxy.userID {
|
||||
if details.senderProfile.id == userSession.clientProxy.userID {
|
||||
presentSessionVerificationScreen(flow: .deviceResponder(requestDetails: details))
|
||||
} else {
|
||||
presentSessionVerificationScreen(flow: .userResponder(requestDetails: details))
|
||||
|
||||
Reference in New Issue
Block a user