Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3496668
D6582.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6582.diff
View Options
diff --git a/lib/shared/messages/update-relationship-message-spec.js b/lib/shared/messages/update-relationship-message-spec.js
--- a/lib/shared/messages/update-relationship-message-spec.js
+++ b/lib/shared/messages/update-relationship-message-spec.js
@@ -18,7 +18,6 @@
import type { ThreadInfo } from '../../types/thread-types';
import type { RelativeUserInfo } from '../../types/user-types';
import { ET, type EntityText } from '../../utils/entity-text';
-import { stringForUser } from '../user-utils';
import { hasMinCodeVersion } from '../version-utils';
import {
pushTypes,
@@ -157,13 +156,14 @@
threadInfo: ThreadInfo,
): Promise<NotifTexts> {
const messageInfo = assertSingleMessageInfo(messageInfos);
- const prefix = stringForUser(messageInfo.creator);
+ const creator = ET.user({ userInfo: messageInfo.creator });
+ const prefix = ET`${creator}`;
const title = threadInfo.uiName;
const body =
messageInfo.operation === 'request_sent'
? 'sent you a friend request'
: 'accepted your friend request';
- const merged = `${prefix} ${body}`;
+ const merged = ET`${prefix} ${body}`;
return {
merged,
body,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 1:44 PM (5 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2681874
Default Alt Text
D6582.diff (1 KB)
Attached To
Mode
D6582: [lib] Migrate UpdateRelationship notifText to use EntityText
Attached
Detach File
Event Timeline
Log In to Comment