Remove seen messages from notifications. Display user and group names in notifications only if they differ from each other.

This commit is contained in:
B. Petersen
2016-12-23 02:08:37 +01:00
parent 5580f5ae62
commit c27fd27789
11 changed files with 139 additions and 74 deletions
@@ -174,9 +174,9 @@ public class ProfileNotificationsActivity extends BaseFragment implements Notifi
SharedPreferences preferences = ApplicationLoader.applicationContext.getSharedPreferences("Notifications", Activity.MODE_PRIVATE);
SharedPreferences.Editor editor = preferences.edit();
editor.putInt("notify2_" + dialog_id, which);
if (which == 2) {
/*if (which == 2) {
NotificationsController.getInstance().removeNotificationsForDialog(dialog_id);
}
}*/
//MessagesStorage.getInstance().setDialogFlags(dialog_id, which == 2 ? 1 : 0);
editor.commit();
TLRPC.TL_dialog dialog = MessagesController.getInstance().dialogs_dict.get(dialog_id);