Merge branch 'develop' into feat.block-room-content-e2ee

This commit is contained in:
Diego Mello 2024-03-07 14:48:29 -03:00
commit 1dac91b6f5
5 changed files with 18 additions and 13 deletions

View File

@ -137,7 +137,7 @@
"Create_account": "Create an account",
"Created_snippet": "created a snippet",
"Custom_push_gateway_connected_description": "Your workspace uses a custom push notification gateway. Check with your workspace administrator for any issues.",
"Custom_push_gateway_connection": "Custom Gateway Connection",
"Custom_push_gateway_connection": "Custom gateway connection",
"DELETE": "DELETE",
"Dark": "Dark",
"Dark_level": "Dark level",
@ -473,7 +473,7 @@
"Push_Notifications_Alert_Info": "These notifications are delivered to you when the app is not open",
"Push_Troubleshooting": "Push Troubleshooting",
"Push_gateway_connected_description": "Send a push notification to yourself to check if the gateway is working",
"Push_gateway_connection": "Push Gateway Connection",
"Push_gateway_connection": "Push gateway connection",
"Push_gateway_not_connected_description": "We're not able to connect to the push gateway. If this issue persists please check with your workspace administrator.",
"Queued_chats": "Queued chats",
"Quote": "Quote",

View File

@ -23,7 +23,7 @@
"All_users_in_the_channel_can_write_new_messages": "Todos usuários no canal podem enviar mensagens novas",
"All_users_in_the_team_can_write_new_messages": "Todos usuários no canal podem enviar mensagens novas",
"Allow_Reactions": "Permitir reagir",
"Allow_push_notifications_for_rocket_chat": "Nenhuma ação adicional é necessária",
"Allow_push_notifications_for_rocket_chat": "Permitir notificações push para Rocket.Chat",
"Also_send_thread_message_to_channel_behavior": "Também enviar mensagem do tópico para o canal",
"Announcement": "Anúncio",
"App_users_are_not_allowed_to_log_in_directly": "Usuários do aplicativo não estão autorizados a fazer login diretamente.",
@ -100,7 +100,7 @@
"Close_emoji_selector": "Fechar seletor de emojis",
"Code_or_password_invalid": "Código ou senha inválido",
"Collaborative": "Colaborativo",
"Community_edition_push_quota": "Cota de notificações push Community Edition",
"Community_edition_push_quota": "Cota de notificações push community edition",
"Condensed": "Condensado",
"Confirm": "Confirmar",
"Confirmation": "Confirmação",
@ -134,7 +134,7 @@
"Create_account": "Criar conta",
"Created_snippet": "criou um snippet",
"Custom_push_gateway_connected_description": "Seu workspace utiliza um gateway de notificação push personalizado. Verifique com o administrador do seu workspace se há algum problema.",
"Custom_push_gateway_connection": "Conexão Personalizada com o Gateway",
"Custom_push_gateway_connection": "Conexão personalizada com o gateway",
"DELETE": "EXCLUIR",
"Dark": "Escuro",
"Dark_level": "Nível escuro",
@ -389,7 +389,7 @@
"No_channels_in_team": "Nenhum canal nesta equipe",
"No_discussions": "Sem discussões",
"No_files": "Não há arquivos",
"No_further_action_is_needed": "Ir para configurações do dispositivo",
"No_further_action_is_needed": "Nenhuma ação adicional é necessária",
"No_label_provided": "Sem {{label}}.",
"No_limit": "Sem limite",
"No_match_found": "Nenhum resultado encontrado.",
@ -465,7 +465,7 @@
"Push_Notifications_Alert_Info": "Essas notificações são entregues a você quando o aplicativo não está aberto",
"Push_Troubleshooting": "Solucionar Problemas de Push",
"Push_gateway_connected_description": "Envie uma notificação push para si mesmo para verificar se o gateway está funcionando.",
"Push_gateway_connection": "Conexão com o Gateway de Push",
"Push_gateway_connection": "Conexão com o gateway de push",
"Push_gateway_not_connected_description": "Não conseguimos conectar ao gateway de push. Se esse problema persistir, por favor, verifique com o administrador do seu workspace.",
"Queued_chats": "Bate-papos na fila",
"Quote": "Citar",
@ -694,7 +694,7 @@
"Wi_Fi_and_mobile_data": "Wi-Fi e dados móveis",
"Without_Servers": "Sem workspaces",
"Workspace_URL_Example": "Ex. sua-empresa.rocket.chat",
"Workspace_consumption": "Consumo do Workspace",
"Workspace_consumption": "Consumo do workspace",
"Workspace_consumption_description": "Existe uma quantidade definida de notificações push por mês",
"Workspaces": "Workspaces",
"Would_like_to_place_on_hold": "Gostaria de colocar essa conversa em espera?",

View File

@ -139,6 +139,9 @@ export default async function updateMessages({
if (newMessage && !newMessage?.blocks) {
newMessage.blocks = null;
}
if (newMessage && !newMessage?.md) {
newMessage.md = undefined;
}
Object.assign(m, newMessage);
})
);

View File

@ -76,7 +76,7 @@ export const e2eUpdateGroupKey = (uid: string, rid: string, key: string): any =>
export const e2eRequestRoomKey = (rid: string, e2eKeyId: string): Promise<{ message: { msg?: string }; success: boolean }> =>
// RC 0.70.0
sdk.methodCallWrapper('stream-notify-room-users', `${rid}/e2ekeyRequest`, rid, e2eKeyId);
sdk.methodCall('stream-notify-room-users', `${rid}/e2ekeyRequest`, rid, e2eKeyId);
export const e2eAcceptSuggestedGroupKey = (rid: string): Promise<{ success: boolean }> =>
// RC 5.5

View File

@ -26,10 +26,12 @@ const LOGIN_SUBMIT_ERRORS = {
};
export const handleLoginErrors = (error: keyof typeof LOGIN_SUBMIT_ERRORS): string => {
const errorKey = Object.keys(LOGIN_SUBMIT_ERRORS).find(key => error.includes(key)) as keyof typeof LOGIN_SUBMIT_ERRORS;
const e = errorKey ? LOGIN_SUBMIT_ERRORS[errorKey].i18n : 'Login_error';
if (i18n.isTranslated(e)) {
return i18n.t(e);
if (typeof error === 'string') {
const errorKey = Object.keys(LOGIN_SUBMIT_ERRORS).find(key => error?.includes(key)) as keyof typeof LOGIN_SUBMIT_ERRORS;
const e = errorKey ? LOGIN_SUBMIT_ERRORS[errorKey]?.i18n : 'Login_error';
if (i18n.isTranslated(e)) {
return i18n.t(e);
}
}
return i18n.t('Login_error');
};