mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Prevent changes to conversations while device is unregistered.
This commit is contained in:
committed by
Greyson Parrelli
parent
5df1fa3c65
commit
ed8edb5aee
@@ -466,6 +466,12 @@ public class TextSecurePreferences {
|
||||
}
|
||||
|
||||
public static void setUnauthorizedReceived(Context context, boolean value) {
|
||||
if (value) {
|
||||
ApplicationDependencies.closeConnections();
|
||||
} else {
|
||||
ApplicationDependencies.getIncomingMessageObserver();
|
||||
}
|
||||
|
||||
setBooleanPreference(context, UNAUTHORIZED_RECEIVED, value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user