Change Leave Room to Leave Conversation for DMs (#2354)

This commit is contained in:
Mauro
2024-01-18 16:48:11 +01:00
committed by GitHub
parent 3ae33f1309
commit 74ec4f09ff
7 changed files with 25 additions and 7 deletions
@@ -220,10 +220,14 @@ struct RoomDetailsScreen: View {
}
}
}
private var leaveRoomTitle: String {
context.viewState.dmRecipient == nil ? L10n.screenRoomDetailsLeaveRoomTitle : L10n.screenRoomDetailsLeaveConversationTitle
}
private var leaveRoomSection: some View {
Section {
ListRow(label: .action(title: L10n.actionLeaveRoom,
ListRow(label: .action(title: leaveRoomTitle,
icon: \.leave,
role: .destructive),
kind: .button { context.send(viewAction: .processTapLeave) })