Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider c7824315 rédigé par Sorunome's avatar Sorunome
Parcourir les fichiers

fix lint

parent 76e20d35
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -179,7 +179,8 @@ export class ChannelSyncroniser { ...@@ -179,7 +179,8 @@ export class ChannelSyncroniser {
} }
const oldIconUrl = remoteRoom.remote.get("discord_iconurl"); const oldIconUrl = remoteRoom.remote.get("discord_iconurl");
if (remoteRoom.remote.get("update_icon") && oldIconUrl !== iconUrl) { // no force on icon update as we don't want to duplicate ALL the icons // no force on icon update as we don't want to duplicate ALL the icons
if (remoteRoom.remote.get("update_icon") && oldIconUrl !== iconUrl) {
log.verbose(`Channel ${mxid} icon should be updated`); log.verbose(`Channel ${mxid} icon should be updated`);
if (iconUrl !== null) { if (iconUrl !== null) {
singleChannelState.iconUrl = iconUrl; singleChannelState.iconUrl = iconUrl;
......
...@@ -114,8 +114,8 @@ bridge.loadDatabases().catch((e) => { ...@@ -114,8 +114,8 @@ bridge.loadDatabases().catch((e) => {
if (entry.remote.get("plumbed")) { if (entry.remote.get("plumbed")) {
return; // skipping plumbed rooms return; // skipping plumbed rooms
} }
const update_icon = entry.remote.get("update_icon"); const updateIcon = entry.remote.get("update_icon");
if (update_icon !== undefined && update_icon !== null) { if (updateIcon !== undefined && updateIcon !== null) {
return; // skipping because something was set manually return; // skipping because something was set manually
} }
entry.remote.set("update_icon", true); entry.remote.set("update_icon", true);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter