MCPcopy Create free account
hub / github.com/CommE2E/comm / constructChangeRoleEntityText

Function constructChangeRoleEntityText

lib/shared/message-utils.js:494–503  ·  view source on GitHub ↗
(
  affectedUsers: EntityText | string,
  roleName: ?string,
)

Source from the content-addressed store, hash-verified

492}
493
494function constructChangeRoleEntityText(
495 affectedUsers: EntityText | string,
496 roleName: ?string,
497): EntityText {
498 if (!roleName) {
499 return ET`assigned ${affectedUsers} a new role`;
500 }
501
502 return ET`assigned ${affectedUsers} the "${roleName}" role`;
503}
504
505function isInvalidSidebarSource(
506 message: RawMessageInfo | MessageInfo,

Callers 2

robotextFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected