mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 11:12:40 +00:00
Show toast if message sending failed.
Added resetting
This commit is contained in:
@@ -546,6 +546,10 @@ public class TextSecurePreferences {
|
||||
setIntegerPrefrence(context, LOCAL_REGISTRATION_ID_PREF, registrationId);
|
||||
}
|
||||
|
||||
public static void removeLocalRegistrationId(Context context) {
|
||||
removePreference(context, LOCAL_REGISTRATION_ID_PREF);
|
||||
}
|
||||
|
||||
public static boolean isInThreadNotifications(Context context) {
|
||||
return getBooleanPreference(context, IN_THREAD_NOTIFICATION_PREF, true);
|
||||
}
|
||||
@@ -639,6 +643,10 @@ public class TextSecurePreferences {
|
||||
setStringPreference(context, LOCAL_NUMBER_PREF, localNumber);
|
||||
}
|
||||
|
||||
public static void removeLocalNumber(Context context) {
|
||||
removePreference(context, LOCAL_NUMBER_PREF);
|
||||
}
|
||||
|
||||
public static String getPushServerPassword(Context context) {
|
||||
return getStringPreference(context, GCM_PASSWORD_PREF, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user