Merge pull request #5388 from matrix-org/t3chguy/fix/15395

Fix room list message preview copy for hangup events
This commit is contained in:
Michael Telatynski 2020-11-03 16:23:34 +00:00 committed by GitHub
commit dbf2394668
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -437,8 +437,8 @@
"You joined the call": "You joined the call",
"%(senderName)s joined the call": "%(senderName)s joined the call",
"Call in progress": "Call in progress",
"You left the call": "You left the call",
"%(senderName)s left the call": "%(senderName)s left the call",
"You ended the call": "You ended the call",
"%(senderName)s ended the call": "%(senderName)s ended the call",
"Call ended": "Call ended",
"You started a call": "You started a call",
"%(senderName)s started a call": "%(senderName)s started a call",

View file

@ -24,9 +24,9 @@ export class CallHangupEvent implements IPreview {
public getTextFor(event: MatrixEvent, tagId?: TagID): string {
if (shouldPrefixMessagesIn(event.getRoomId(), tagId)) {
if (isSelf(event)) {
return _t("You left the call");
return _t("You ended the call");
} else {
return _t("%(senderName)s left the call", {senderName: getSenderName(event)});
return _t("%(senderName)s ended the call", {senderName: getSenderName(event)});
}
} else {
return _t("Call ended");