Add text next to protections emoji

Fixes https://github.com/matrix-org/mjolnir/issues/16
This commit is contained in:
Travis Ralston
2020-02-13 13:48:10 -07:00
parent 8e5f8c19af
commit 90cc3d01b4
+1 -1
View File
@@ -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 += `<li>${emoji} <code>${protection}</code> - ${PROTECTIONS[protection].description}</li>`;
text += `* ${emoji} ${protection} - ${PROTECTIONS[protection].description}\n`;
}