mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-05 15:37:45 +02:00
feat: change leave room info (MESSENGER-6526)
This commit is contained in:
@@ -79,8 +79,13 @@ final class RoomInfoListViewController: UIViewController {
|
||||
|
||||
private func getLeaveAlertController() -> UIAlertController {
|
||||
if self.viewModel.canLeaveRoom() {
|
||||
var message = ""
|
||||
if viewModel.isOnlyMember() {
|
||||
message = BWIL10n.roomParticipantsLeaveAndDeletePromptMsg
|
||||
} else {
|
||||
message = self.isRoomDirect ? VectorL10n.roomParticipantsLeavePromptMsgForDm : VectorL10n.roomParticipantsLeavePromptMsg
|
||||
}
|
||||
let title = self.isRoomDirect ? VectorL10n.roomParticipantsLeavePromptTitleForDm : VectorL10n.roomParticipantsLeavePromptTitle
|
||||
let message = self.isRoomDirect ? VectorL10n.roomParticipantsLeavePromptMsgForDm : VectorL10n.roomParticipantsLeavePromptMsg
|
||||
|
||||
let controller = UIAlertController(title: title, message: message, preferredStyle: .alert)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user