Page MenuHomePhabricator

D8142.diff
No OneTemporary

D8142.diff

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

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)

Event Timeline