mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Invite the DM recipient to a new room (#5588)
* handle the details to invite users flow. * implemented the room creation in the invite screen, and its dismissal + navigaton to the newly created room * updated preview and unit tests * pr suggestions
This commit is contained in:
@@ -18,6 +18,7 @@ enum RoomDetailsScreenViewModelAction: Equatable {
|
||||
case requestMemberDetailsPresentation
|
||||
case requestRecipientDetailsPresentation(userID: String)
|
||||
case requestInvitePeoplePresentation
|
||||
case requestInviteToNewRoomPresentation(selectedInvitee: UserProfileProxy)
|
||||
case leftRoom
|
||||
case requestEditDetailsPresentation
|
||||
case requestPollsHistoryPresentation
|
||||
@@ -98,6 +99,7 @@ struct RoomDetailsScreenViewState: BindableState {
|
||||
}
|
||||
shortcuts.append(.videoCall)
|
||||
}
|
||||
// The invite flow is different for DMs
|
||||
if dmRecipientInfo == nil, canInviteUsers {
|
||||
shortcuts.append(.invite)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user