mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 16:19:33 +01:00
Only notify for unauthorized response to messages endpoint.
This commit is contained in:
committed by
Greyson Parrelli
parent
0fd8f73cca
commit
d70fe8f2cd
@@ -454,15 +454,15 @@ public class TextSecurePreferences {
|
||||
|
||||
if (previous != value) {
|
||||
Recipient.self().live().refresh();
|
||||
if (value) {
|
||||
notifyUnregisteredReceived(context);
|
||||
}
|
||||
}
|
||||
|
||||
if (value) {
|
||||
clearLocalCredentials(context);
|
||||
}
|
||||
|
||||
if (value && !previous) {
|
||||
showUnregisteredNotification(context);
|
||||
EventBus.getDefault().post(new ReminderUpdateEvent());
|
||||
} else {
|
||||
NotificationManagerCompat.from(context).cancel(NotificationIds.UNREGISTERED_NOTIFICATION_ID);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1168,7 +1168,7 @@ public class TextSecurePreferences {
|
||||
return preferences;
|
||||
}
|
||||
|
||||
private static void showUnregisteredNotification(Context context) {
|
||||
private static void notifyUnregisteredReceived(Context context) {
|
||||
PendingIntent reRegistrationIntent = PendingIntent.getActivity(context,
|
||||
0,
|
||||
RegistrationNavigationActivity.newIntentForReRegistration(context),
|
||||
|
||||
Reference in New Issue
Block a user