feat: E2EE warnings on search and audit panel (#32551)
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat> Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>pull/32652/head
parent
9e8370d59e
commit
768cad6de5
@ -0,0 +1,6 @@ |
||||
--- |
||||
'@rocket.chat/i18n': minor |
||||
'@rocket.chat/meteor': minor |
||||
--- |
||||
|
||||
Implement E2EE warning callouts letting users know that encrypted messages can't be searched and auditted on search contextual bar and audit panel. |
||||
@ -0,0 +1,39 @@ |
||||
import { |
||||
isPublicRoom, |
||||
type IRoom, |
||||
isDirectMessageRoom, |
||||
isPrivateTeamRoom, |
||||
isPublicTeamRoom, |
||||
isPrivateDiscussion, |
||||
isPrivateRoom, |
||||
} from '@rocket.chat/core-typings'; |
||||
|
||||
import { t } from '../../app/utils/lib/i18n'; |
||||
|
||||
export const getRoomTypeTranslation = (room: IRoom) => { |
||||
if (isPublicRoom(room)) { |
||||
return t('Channel'); |
||||
} |
||||
|
||||
if (isPrivateDiscussion(room)) { |
||||
return t('Private_Discussion'); |
||||
} |
||||
|
||||
if (isPrivateRoom(room)) { |
||||
return t('Private_Group'); |
||||
} |
||||
|
||||
if (isDirectMessageRoom(room)) { |
||||
return t('Direct_Message'); |
||||
} |
||||
|
||||
if (isPrivateTeamRoom(room)) { |
||||
return t('Teams_Private_Team'); |
||||
} |
||||
|
||||
if (isPublicTeamRoom(room)) { |
||||
return t('Teams_Public_Team'); |
||||
} |
||||
|
||||
return t('Room'); |
||||
}; |
||||
Loading…
Reference in new issue