Page MenuHomePhabricator

D6521.diff
No OneTemporary

D6521.diff

diff --git a/lib/shared/messages/unsupported-message-spec.js b/lib/shared/messages/unsupported-message-spec.js
--- a/lib/shared/messages/unsupported-message-spec.js
+++ b/lib/shared/messages/unsupported-message-spec.js
@@ -11,6 +11,7 @@
UnsupportedMessageInfo,
} from '../../types/messages/unsupported';
import type { RelativeUserInfo } from '../../types/user-types';
+import { ET, type EntityText } from '../../utils/entity-text';
import {
robotextToRawString,
robotextForMessageInfo,
@@ -87,11 +88,12 @@
);
},
- robotext(messageInfo: UnsupportedMessageInfo, creator: string): string {
+ robotext(messageInfo: UnsupportedMessageInfo): EntityText {
if (messageInfo.dontPrefixCreator) {
- return messageInfo.robotext;
+ return ET`${messageInfo.robotext}`;
}
- return `${creator} ${messageInfo.robotext}`;
+ const creator = ET.user({ userInfo: messageInfo.creator });
+ return ET`${creator} ${messageInfo.robotext}`;
},
generatesNotifs: async () => pushTypes.NOTIF,

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 6:10 AM (18 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2686580
Default Alt Text
D6521.diff (1 KB)

Event Timeline