mirror of
https://codeberg.org/Mercury-IM/Mercury-IM
synced 2024-06-16 16:44:51 +02:00
Fix crash on new message
This commit is contained in:
parent
c68a0b992d
commit
8d8bac90c3
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue