mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
Improve kick state to not show if the target was not joined to begin with
This commit is contained in:
parent
853b218d8a
commit
c1d88be260
1 changed files with 3 additions and 2 deletions
|
@ -95,9 +95,10 @@ function textForMemberEvent(ev) {
|
|||
senderName,
|
||||
targetName,
|
||||
}) + ' ' + reason;
|
||||
} else {
|
||||
// sender is not target and made the target leave, if not from invite/ban then this is a kick
|
||||
} else if (prevContent.membership === "join") {
|
||||
return _t('%(senderName)s kicked %(targetName)s.', {senderName, targetName}) + ' ' + reason;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue