From 90cc3d01b4fccf850db636fe636f39b6b48ff738 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 13 Feb 2020 13:48:10 -0700 Subject: [PATCH] Add text next to protections emoji Fixes https://github.com/matrix-org/mjolnir/issues/16 --- src/commands/ProtectionsCommands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/ProtectionsCommands.ts b/src/commands/ProtectionsCommands.ts index 60acccf5..1f71324a 100644 --- a/src/commands/ProtectionsCommands.ts +++ b/src/commands/ProtectionsCommands.ts @@ -48,7 +48,7 @@ export async function execListProtections(roomId: string, event: any, mjolnir: M let text = "Available protections:\n"; for (const protection of possibleProtections) { - const emoji = enabledProtections.includes(protection) ? '🟢' : '🔴'; // green vs red circles + const emoji = enabledProtections.includes(protection) ? '🟢 (enabled)' : '🔴 (disabled)'; html += `
  • ${emoji} ${protection} - ${PROTECTIONS[protection].description}
  • `; text += `* ${emoji} ${protection} - ${PROTECTIONS[protection].description}\n`; }