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))) }) }