Browse Source

fix requested by mastercake10

Arthessia Derven 1 year ago
parent
commit
b838f29927

+ 4 - 0
.gitignore

@@ -2,3 +2,7 @@
 *.class
 /target
 *.iml
+.project
+.classpath
+.settings/
+.settings2/

+ 0 - 4
.settings/org.eclipse.core.resources.prefs

@@ -1,4 +0,0 @@
-eclipse.preferences.version=1
-encoding//src/main/java=UTF-8
-encoding//src/main/resources=UTF-8
-encoding/<project>=UTF-8

+ 0 - 8
.settings/org.eclipse.jdt.core.prefs

@@ -1,8 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=9
-org.eclipse.jdt.core.compiler.compliance=9
-org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
-org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
-org.eclipse.jdt.core.compiler.release=disabled
-org.eclipse.jdt.core.compiler.source=9

+ 0 - 4
.settings/org.eclipse.m2e.core.prefs

@@ -1,4 +0,0 @@
-activeProfiles=
-eclipse.preferences.version=1
-resolveWorkspaceProjects=true
-version=1

+ 1 - 6
src/main/java/de/Linus122/Telegram/Telegram.java

@@ -175,12 +175,7 @@ public class Telegram {
 		for (TelegramActionListener actionListener : listeners) {
 			actionListener.onSendToTelegram(chat);
 		}
-		boolean turnNotificationToSilent = TelegramChat.getInstance().getConfig().getBoolean("turn-to-silent-notification");
-		if(turnNotificationToSilent) {
-			chat.disable_notification = true;
-		} else {
-			chat.disable_notification = false;
-		}
+		chat.disable_notification = TelegramChat.getInstance().getConfig().getBoolean("turn-to-silent-notification");
 		
 		Gson gson = new Gson();
 		if(!chat.isCancelled()){