mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-03 14:46:56 +02:00
feat: change leave room info (MESSENGER-6526)
This commit is contained in:
@@ -204,9 +204,14 @@ class RoomContextActionService: NSObject, RoomContextActionServiceProtocol {
|
||||
}()
|
||||
|
||||
private func getLeaveAlertController() -> UIAlertController {
|
||||
if LeaveRoomHelper.canLeaveRoom(self.session, self.room) {
|
||||
if LeaveRoomHelper.canLeaveRoom(self.session, self.room) {
|
||||
var message = ""
|
||||
if LeaveRoomHelper.isOnlyMember(self.room) {
|
||||
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