Merge branch 'master' into deltalab

This commit is contained in:
adbenitez
2020-07-13 13:08:11 -04:00
2 changed files with 9 additions and 6 deletions
@@ -715,6 +715,15 @@ public class ConversationFragment extends Fragment
else if(DozeReminder.isDozeReminderMsg(getContext(), messageRecord)) {
DozeReminder.dozeReminderTapped(getContext());
}
else {
String self_mail = dcContext.getConfig("configured_mail_user");
if (self_mail != null && !self_mail.isEmpty()
&& messageRecord.getText().contains(self_mail)
&& getListAdapter().getChat().isDeviceTalk()) {
// This is a device message informing the user that the password is wrong
startActivity(new Intent(getActivity(), RegistrationActivity.class));
}
}
}
@Override
@@ -321,12 +321,6 @@ public class NotificationCenter {
return;
}
if (dcChat.isDeviceTalk()) {
// currently, we just never notify on device chat.
// esp. on first start, this is annoying.
return;
}
NotificationManagerCompat notificationManager = NotificationManagerCompat.from(context);
// get notification text as a single line