From 1ec1717c9984593b6b31c672bfe467ece002abb5 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Mon, 3 Feb 2020 21:08:09 +1100 Subject: [PATCH] Fix typo --- .../securesms/ApplicationContext.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/org/thoughtcrime/securesms/ApplicationContext.java b/src/org/thoughtcrime/securesms/ApplicationContext.java index 779186e744..2791de73b1 100644 --- a/src/org/thoughtcrime/securesms/ApplicationContext.java +++ b/src/org/thoughtcrime/securesms/ApplicationContext.java @@ -534,18 +534,18 @@ public class ApplicationContext extends MultiDexApplication implements Dependenc public void createDefaultPublicChatsIfNeeded() { List defaultPublicChats = LokiPublicChatAPI.Companion.getDefaultChats(BuildConfig.DEBUG); - for (LokiPublicChat publiChat : defaultPublicChats) { - long threadID = GroupManager.getPublicChatThreadId(publiChat.getId(), this); - String migrationKey = publiChat.getId() + "_migrated"; + for (LokiPublicChat publicChat : defaultPublicChats) { + long threadID = GroupManager.getPublicChatThreadId(publicChat.getId(), this); + String migrationKey = publicChat.getId() + "_migrated"; boolean isChatMigrated = TextSecurePreferences.getBooleanPreference(this, migrationKey, false); - boolean isChatSetUp = TextSecurePreferences.isChatSetUp(this, publiChat.getId()); - if (!isChatSetUp || !publiChat.isDeletable()) { - lokiPublicChatManager.addChat(publiChat.getServer(), publiChat.getChannel(), publiChat.getDisplayName()); - TextSecurePreferences.markChatSetUp(this, publiChat.getId()); + boolean isChatSetUp = TextSecurePreferences.isChatSetUp(this, publicChat.getId()); + if (!isChatSetUp || !publicChat.isDeletable()) { + lokiPublicChatManager.addChat(publicChat.getServer(), publicChat.getChannel(), publicChat.getDisplayName()); + TextSecurePreferences.markChatSetUp(this, publicChat.getId()); TextSecurePreferences.setBooleanPreference(this, migrationKey, true); } else if (threadID > -1 && !isChatMigrated) { // Migrate the old public chats - DatabaseFactory.getLokiThreadDatabase(this).setPublicChat(publiChat, threadID); + DatabaseFactory.getLokiThreadDatabase(this).setPublicChat(publicChat, threadID); TextSecurePreferences.setBooleanPreference(this, migrationKey, true); } }