Merge pull request #5846 from matrix-org/t3chguy/fix/16822

Improve kick state to not show if the target was not joined to begin with
pull/21833/head
Michael Telatynski 2021-04-12 14:45:13 +01:00 committed by GitHub
commit 4aef7a879a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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 "";
}
}
}