mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
handle unsend requests in NSE
This commit is contained in:
parent
00fd764042
commit
111bbd0646
|
@ -67,6 +67,11 @@ public final class NotificationServiceExtension : UNNotificationServiceExtension
|
||||||
return self.completeSilenty()
|
return self.completeSilenty()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Store the notification identifier for unsend request to cancel this notification
|
||||||
|
tsIncomingMessage.setNotificationIdentifier(request.identifier, transaction: transaction)
|
||||||
|
case let unsendRequest as UnsendRequest:
|
||||||
|
MessageReceiver.handleUnsendRequest(unsendRequest, using: transaction)
|
||||||
|
return self.completeSilenty()
|
||||||
case let closedGroupControlMessage as ClosedGroupControlMessage:
|
case let closedGroupControlMessage as ClosedGroupControlMessage:
|
||||||
// TODO: We could consider actually handling the update here. Not sure if there's enough time though, seeing as though
|
// TODO: We could consider actually handling the update here. Not sure if there's enough time though, seeing as though
|
||||||
// in some cases we need to send messages (e.g. our sender key) to a number of other users.
|
// in some cases we need to send messages (e.g. our sender key) to a number of other users.
|
||||||
|
|
Loading…
Reference in a new issue