feat: check exception in listen notifications use cases
This commit is contained in:
parent
2b0fa4b578
commit
f4972e629d
@ -38,6 +38,10 @@ class ListenNotification extends StreamUseCase<NoParam, RemoteNotification> {
|
|||||||
if (notificationStreamResponse.isOk) {
|
if (notificationStreamResponse.isOk) {
|
||||||
notificationStream = notificationStreamResponse.ok;
|
notificationStream = notificationStreamResponse.ok;
|
||||||
} else if (notificationStreamResponse.isErr) {
|
} else if (notificationStreamResponse.isErr) {
|
||||||
|
if (notificationStreamResponse.err! is UnimplementedError) {
|
||||||
|
return Err(notificationStreamResponse.err!);
|
||||||
|
}
|
||||||
|
|
||||||
final notificationBackgroundStreamResponse =
|
final notificationBackgroundStreamResponse =
|
||||||
await _notificationRepository.onNotificationBackground();
|
await _notificationRepository.onNotificationBackground();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user