Fix crash on new message

This commit is contained in:
Paul Schaub 2019-09-30 02:14:04 +02:00
parent c68a0b992d
commit 8d8bac90c3
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -22,7 +22,6 @@ public class Notifications {
public static int chatMessageReceived(Context context, Chat chat, String contactName, String body) { public static int chatMessageReceived(Context context, Chat chat, String contactName, String body) {
NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(context); NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(context);
notificationManagerCompat.notify();
int id = (chat.accountId + " " + chat.jid.toString()).hashCode(); int id = (chat.accountId + " " + chat.jid.toString()).hashCode();
Intent tapAction = new Intent(context, ChatActivity.class); Intent tapAction = new Intent(context, ChatActivity.class);