Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3387033
D8142.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
771 B
Referenced Files
None
Subscribers
None
D8142.diff
View Options
diff --git a/lib/shared/messages/change-role-message-spec.js b/lib/shared/messages/change-role-message-spec.js
--- a/lib/shared/messages/change-role-message-spec.js
+++ b/lib/shared/messages/change-role-message-spec.js
@@ -122,12 +122,9 @@
const { threadInfo } = params;
invariant(threadInfo, 'ThreadInfo should be set for CHANGE_ROLE message');
- const verb = threadInfo.roles[messageInfo.newRole].isDefault
- ? 'removed'
- : 'added';
- const noun = users.length === 1 ? 'an admin' : 'admins';
+ const roleName = threadInfo.roles[messageInfo.newRole].name;
- return ET`${creator} ${verb} ${affectedUsers} as ${noun}`;
+ return ET`${creator} assigned ${affectedUsers} the \"${roleName}\" role`;
},
async notificationTexts(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 7:20 AM (21 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2600095
Default Alt Text
D8142.diff (771 B)
Attached To
Mode
D8142: [lib] Update robotext for role changes
Attached
Detach File
Event Timeline
Log In to Comment