From 73a8c2e16bf7b63a80cf916a99238978e14c74ef Mon Sep 17 00:00:00 2001 From: Aaron Sutula Date: Fri, 19 Oct 2018 15:48:30 -0500 Subject: [PATCH] Transform real time notifs to typed versions --- App/Services/EventHandlers/TextileNodeEventHandler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/App/Services/EventHandlers/TextileNodeEventHandler.ts b/App/Services/EventHandlers/TextileNodeEventHandler.ts index eeeff5d47..0a5051e1c 100644 --- a/App/Services/EventHandlers/TextileNodeEventHandler.ts +++ b/App/Services/EventHandlers/TextileNodeEventHandler.ts @@ -8,6 +8,7 @@ import TextileNodeActions from '../../Redux/TextileNodeRedux' import NotificationActions from '../../Redux/NotificationsRedux' import PhotoViewingActions from '../../Redux/PhotoViewingRedux' import StorageActions from '../../Redux/StorageRedux' +import { toTypedNotification } from '../Notifications' export default class TextileNodeEventHandler { store: Store @@ -40,7 +41,7 @@ export default class TextileNodeEventHandler { this.store.dispatch(PhotoViewingActions.threadRemoved(payload.id)) }) TextileNode.eventEmitter.addListener('onNotification', (payload) => { - this.store.dispatch(NotificationActions.newNotificationRequest(payload)) + this.store.dispatch(NotificationActions.newNotificationRequest(toTypedNotification(payload))) }) }