Skip to content

Direct message sent to me isn't showing in LHN #316

Closed

Description

@mallenexpensify

Problem
Jason sent me a test DM but it didn't show up in LHN on chatDot on web. He then sent another which I noticed in a browser notification but nothing in LHN
image

Solution
Take a look to see why it's not showing up and hopefully fix it!

Activity

  1. shawnborton commented on Aug 27, 2020

    @shawnborton
    Contributor

    Did you try a hard refresh?

  2. mallenexpensify commented on Aug 28, 2020

    @mallenexpensify
    ContributorAuthor

    I didn't, I'll do that now. It's showing.
    I had sent/received messages in between then though.
    Also... I did get an email with the messages so they weren't 'completely lost'.

    @shawnborton is this something that still needs to be looked into?

  3. marcaaron commented on Aug 28, 2020

    @marcaaron
    Contributor

    Yeah, we haven't implemented this yet. But it should be easy to do.

    When we get a pusher notification for a report we don't have yet we should fetch the entire chat report.

  4. tgolen commented on Aug 28, 2020

    @tgolen
    Contributor

    @marcaaron What do you think about this for a solution?

    In this code here, we add something like this:

    if (CONFIG.IS_IN_PRODUCTION && !ionReportID) {
        fetchReport(ionReportID)
    }
    
  5. marcaaron commented on Aug 28, 2020

    @marcaaron
    Contributor

    Yeah that will work! We might still have to deal with this somehow
    https://github.com/Expensify/ReactNativeChat/blob/951e7bdb22a8b6c051f70393a35fadfa41e5e2c1/src/lib/actions/Report.js#L24-L25

    Edit: nvm seeing that your snippet says when IN production we will do this

  6. self-assigned this
    on Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions