Solution described in ENG-9465.
Details
Details
- Reviewers
ashoat kamil - Commits
- rCOMMd304b0bc35f4: [lib] fix `PushHandler` to support DMs
Apply this diff:
- Comment this line to make sure we're testing actual notifs code & add some logs to make sure code in reducer was executed.
- Open physical device
- In DM thread send a test message
- Notif delivered
- Message immediately visible in UI
- Thread marked as unread
- Logs from reducer are there
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- master
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
lib/reducers/thread-reducer.js | ||
---|---|---|
341–342 | I'm confused why we'd want to set the thread to unread even if the timestamp is newer than the message timestamp What's the benefit of this? Doesn't it introduce a risk of setting something to unread incorrectly if a notif for message X is received after a Tunnelbroker message is received for message X? |
Comment Actions
Preemptively accepting so that after @tomek commandeers, it's not in an In Review state
Comment Actions
Performed Kamil's test again (except the logs stuff) and the solution works correctly.