-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into youtube-broadcast
- Loading branch information
Showing
24 changed files
with
185 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/rocketchat-autotranslate/server/methods/getSupportedLanguages.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,7 +181,7 @@ | |
"Accounts_UserAddedEmail_Description": "Вы можете использовать следующие подстановки: <br/><ul><li> [name], [fname], [lname] для полного имени пользователя, только имени или только фамилии, соответственно). </li><li> [email] - для email адреса пользователя. </li><li> [password] - для пароля пользователя. </li><li>[Site_Name] и [Site_URL] - название вашего приложения и его URL. </li></ul>", | ||
"Accounts_UserAddedEmailSubject_Default": "Вы были добавлены в [Site_Name]", | ||
"Activate": "Активировать", | ||
"Activity": "Активность", | ||
"Activity": "По активности", | ||
"Add": "Добавить", | ||
"add-oauth-service": "Добавить сервис Oauth", | ||
"add-oauth-service_description": "Разрешение на добавление новых сервисов Oauth", | ||
|
@@ -533,6 +533,7 @@ | |
"Community": "Сообщество", | ||
"Compact": "Компактный", | ||
"Computer": "Компьютер", | ||
"Condensed": "Компактный", | ||
"Confirm_password": "Подтвердить пароль", | ||
"Consulting": "Консалтинг", | ||
"Consumer_Goods": "Потребительские товары", | ||
|
@@ -1235,6 +1236,7 @@ | |
"Idle_Time_Limit": "Предел времени ожидания", | ||
"Idle_Time_Limit_Description": "Период времени, пока статус не изменится. Значение должно быть в секундах.", | ||
"If_this_email_is_registered": "Если этот адрес электронной почты зарегистрирован, мы отправим на него инструкцию по сбросу пароля. Если вы не получили электронное сообщение, попробуйте снова позже.", | ||
"Idle_Time_Limit": "Время ожидания", | ||
"If_you_are_sure_type_in_your_password": "Если вы уверены, введите пароль:", | ||
"If_you_are_sure_type_in_your_username": "Если вы уверены, введите ваш логин:", | ||
"If_you_dont_have_one_send_an_email_to_omni_rocketchat_to_get_yours": "Если у вас нет одного, отправьте электронное сообщение на адрес [[email protected]] (mailto: [email protected]), чтобы получить свой.", | ||
|
@@ -1632,6 +1634,7 @@ | |
"Markdown_SupportSchemesForLink_Description": "Разрешённые Markdown системы через запятую", | ||
"Max_length_is": "Максимальная длина %s", | ||
"Media": "СМИ", | ||
"Medium": "Обычный", | ||
"Members_List": "Пользователи", | ||
"mention-all": "Упоминать всех", | ||
"mention-all_description": "Разрешение на использование упоминания @all", | ||
|
@@ -2024,7 +2027,7 @@ | |
"Require_all_tokens": "Требовать все токены", | ||
"Require_any_token": "Требовать любой токен", | ||
"Require_password_change": "Требуется смена пароля", | ||
"Resend_verification_email": "Отправить проверочное электронное письмо ещё раз", | ||
"Resend_verification_email": "Отправить проверочный e-mail снова", | ||
"Reset": "Восстановить", | ||
"Reset_password": "Восстановить пароль", | ||
"Reset_section_settings": "Восстановить значения по умолчанию", | ||
|
@@ -2184,7 +2187,7 @@ | |
"Show_only_online": "Показать только подключенных", | ||
"Show_preregistration_form": "Показать предварительную регистрационную форму", | ||
"Show_queue_list_to_all_agents": "Показывать список очередей всем представителям", | ||
"Show_room_counter_on_sidebar": "Показывать число комнат на боковой панели", | ||
"Show_room_counter_on_sidebar": "Показывать количество чатов на боковой панели", | ||
"Show_the_keyboard_shortcut_list": "Показывать список горячих клавиш", | ||
"Showing_archived_results": "<p>Показано <b>%s</b> архивных результатов</p>", | ||
"Showing_online_users": "Показано: <b>__total_showing__</b>. Подключенных: __online__. Всего: __total__ пользователей", | ||
|
@@ -2450,7 +2453,7 @@ | |
"Unread_Count": "Количество непрочитанных", | ||
"Unread_Count_DM": "Количество непрочитанных сообщений для личных переписки", | ||
"Unread_Messages": "Непрочитанные сообщения", | ||
"Unread_on_top": "Непрочитанное наверх", | ||
"Unread_on_top" : "Непрочитанные сверху", | ||
"Unread_Rooms": "Непрочитанные комнаты", | ||
"Unread_Rooms_Mode": "Режим непрочитанные комнаты", | ||
"Unread_Tray_Icon_Alert": "Иконка уведомлений о непрочитанных сообщениях в трее", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Meteor.methods({ | ||
'livechat:removeRoom'(rid) { | ||
if (!Meteor.userId() || !RocketChat.authz.hasPermission(Meteor.userId(), 'remove-closed-livechat-rooms')) { | ||
throw new Meteor.Error('error-not-allowed', 'Not allowed', { method: 'livechat:removeRoom' }); | ||
} | ||
|
||
const room = RocketChat.models.Rooms.findOneById(rid); | ||
|
||
if (!room) { | ||
throw new Meteor.Error('error-invalid-room', 'Invalid room', { | ||
method: 'livechat:removeRoom' | ||
}); | ||
} | ||
|
||
if (room.t !== 'l') { | ||
throw new Meteor.Error('error-this-is-not-a-livechat-room', 'This is not a Livechat room', { | ||
method: 'livechat:removeRoom' | ||
}); | ||
} | ||
|
||
if (room.open) { | ||
throw new Meteor.Error('error-room-is-not-closed', 'Room is not closed', { | ||
method: 'livechat:removeRoom' | ||
}); | ||
} | ||
|
||
RocketChat.models.Messages.removeByRoomId(rid); | ||
RocketChat.models.Subscriptions.removeByRoomId(rid); | ||
return RocketChat.models.Rooms.removeById(rid); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.