mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 05:21:30 +03:00
Show "Open chat" if DM already exists
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
7d6342fa40
commit
0b52ad48bb
2 changed files with 2 additions and 1 deletions
|
@ -428,7 +428,7 @@ const UserOptionsSection: React.FC<{
|
|||
if (!isMe) {
|
||||
directMessageButton = (
|
||||
<AccessibleButton onClick={() => openDMForUser(cli, member.userId)} className="mx_UserInfo_field">
|
||||
{ _t('Direct message') }
|
||||
{ findDMForUser(cli, member.userId) ? _t("Open chat") : _t('Direct message') }
|
||||
</AccessibleButton>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -1784,6 +1784,7 @@
|
|||
"Mention": "Mention",
|
||||
"Invite": "Invite",
|
||||
"Share Link to User": "Share Link to User",
|
||||
"Open chat": "Open chat",
|
||||
"Direct message": "Direct message",
|
||||
"Demote yourself?": "Demote yourself?",
|
||||
"You will not be able to undo this change as you are demoting yourself, if you are the last privileged user in the space it will be impossible to regain privileges.": "You will not be able to undo this change as you are demoting yourself, if you are the last privileged user in the space it will be impossible to regain privileges.",
|
||||
|
|
Loading…
Reference in a new issue