Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #644 from textileio/asutula/live-notif-thumb-fix
Browse files Browse the repository at this point in the history
Transform real time notifs to typed versions
  • Loading branch information
asutula authored Oct 19, 2018
2 parents cb8d6c1 + 73a8c2e commit e199b87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion App/Services/EventHandlers/TextileNodeEventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<RootState>
Expand Down Expand Up @@ -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)))
})
}

Expand Down

0 comments on commit e199b87

Please sign in to comment.