mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-29 12:00:49 +00:00
Clean up.
This commit is contained in:
parent
996f233d25
commit
152ddf013b
@ -337,8 +337,8 @@ public class MessageNotifier {
|
|||||||
|
|
||||||
boolean canReply = isGroup || isFriends;
|
boolean canReply = isGroup || isFriends;
|
||||||
|
|
||||||
PendingIntent quickReplyIntent = canReply ? notificationState.getQuickReplyIntent(context, notifications.get(0).getRecipient()) : null;
|
PendingIntent quickReplyIntent = canReply ? notificationState.getQuickReplyIntent(context, recipient) : null;
|
||||||
PendingIntent remoteReplyIntent = canReply ? notificationState.getRemoteReplyIntent(context, notifications.get(0).getRecipient(), replyMethod) : null;
|
PendingIntent remoteReplyIntent = canReply ? notificationState.getRemoteReplyIntent(context, recipient, replyMethod) : null;
|
||||||
|
|
||||||
builder.addActions(notificationState.getMarkAsReadIntent(context, notificationId),
|
builder.addActions(notificationState.getMarkAsReadIntent(context, notificationId),
|
||||||
quickReplyIntent,
|
quickReplyIntent,
|
||||||
@ -346,8 +346,9 @@ public class MessageNotifier {
|
|||||||
replyMethod);
|
replyMethod);
|
||||||
|
|
||||||
if (canReply) {
|
if (canReply) {
|
||||||
builder.addAndroidAutoAction(notificationState.getAndroidAutoReplyIntent(context, notifications.get(0).getRecipient()),
|
builder.addAndroidAutoAction(notificationState.getAndroidAutoReplyIntent(context, recipient),
|
||||||
notificationState.getAndroidAutoHeardIntent(context, notificationId), notifications.get(0).getTimestamp());
|
notificationState.getAndroidAutoHeardIntent(context, notificationId),
|
||||||
|
notifications.get(0).getTimestamp());
|
||||||
}
|
}
|
||||||
|
|
||||||
ListIterator<NotificationItem> iterator = notifications.listIterator(notifications.size());
|
ListIterator<NotificationItem> iterator = notifications.listIterator(notifications.size());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user