accounts: show cog when user known for disabled chatbot

This commit is contained in:
Harvey Tindall
2021-07-20 15:45:00 +01:00
parent aa2891fc87
commit 6b4d4da455
2 changed files with 8 additions and 3 deletions
+3 -3
View File
@@ -65,9 +65,9 @@ class user implements User {
private _lastNotifyMethod = (): string => {
// Telegram, Matrix, Discord
const telegram = this._telegramUsername && this._telegramUsername != "";
const discord = this._discordUsername && this._discordUsername != "";
const matrix = this._matrixID && this._matrixID != "";
const telegram = window.telegramEnabled && this._telegramUsername && this._telegramUsername != "";
const discord = window.discordEnabled && this._discordUsername && this._discordUsername != "";
const matrix = window.matrixEnabled && this._matrixID && this._matrixID != "";
if (discord) return "discord";
if (matrix) return "matrix";
if (telegram) return "telegram";