fb-messenger-cli icon indicating copy to clipboard operation
fb-messenger-cli copied to clipboard

Chats not refreshing automatically

Open blandre opened this issue 5 years ago • 13 comments

Whenever I receive a new message, it doesn't automatically show, unless I manually refresh. The same happens when I send new messages, the '>' indicator doesn't show after I send the first time. Again, refreshing manually seems to work.

blandre avatar Nov 21 '19 15:11 blandre

Im having the same exact problem

Horites avatar Nov 24 '19 15:11 Horites

I am running into the same issue. Some important diagnostics:

  • messages still do send upon hitting enter
  • new messages do not render in the thread

(Hope @Horites and @blandre will let me know if their experiences differ from this)

j6k4m8 avatar Dec 16 '19 19:12 j6k4m8

Same issue here.

Also might be worth noting Messer, a similar project, is having a similar issue. I suspect facebook updated their API which is causing this issue.

wgehalo avatar Dec 17 '19 21:12 wgehalo

Hello @j6k4m8 Yes, it seems like Im having the exact same problem as you are. I do belive @wgehalo would be correct on the API issue.

Horites avatar Dec 18 '19 08:12 Horites

Same problem here. Anyone aware of a similar project that fixed this problem ?

Toz3wm avatar Dec 24 '19 09:12 Toz3wm

joining you guys. discovered cli clients yeasterday and still didn't manage to make usable this one nor messer :smile:.

also, this happens

> /search adama
/usr/lib/node_modules/fb-messenger-cli/lib/search.js:49
            return friend.name.toLowerCase().indexOf(searchString.toLowerCase()) !== -1;
                               ^

TypeError: Cannot read property 'toLowerCase' of undefined
    at /usr/lib/node_modules/fb-messenger-cli/lib/search.js:49:32
    at Array.filter (<anonymous>)
    at Search.filterFriends (/usr/lib/node_modules/fb-messenger-cli/lib/search.js:48:38)
    at /usr/lib/node_modules/fb-messenger-cli/lib/search.js:42:18

michondr avatar Dec 25 '19 08:12 michondr

@michondr your second bug looks like it's solved here: https://github.com/Alex-Rose/fb-messenger-cli/issues/193

  • Delete the .kryptonite file
  • Make sure you're on the latest node versions

j6k4m8 avatar Dec 25 '19 14:12 j6k4m8

I'm having the same problem. Did they have any progress on this issue?

B-greg avatar Jan 06 '20 06:01 B-greg

yeah i've just taken to typing /r after every series of messages, not quite ideal but...beats opening the browser?

gcantieni avatar Jan 13 '20 16:01 gcantieni

Can you verify that adding a /r to typed messages remedies this issue? Can others verify it works for them?

On Mon, Jan 13, 2020 at 11:19 AM Gus Cantieni [email protected] wrote:

yeah i've just taken to typting /r after every series of messages, not quite ideal but...beats opening the browser?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Alex-Rose/fb-messenger-cli/issues/220?email_source=notifications&email_token=AAFJKB6DK2FGIHIVAXEHEW3Q5SIB5A5CNFSM4JQDZXCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIZKQFY#issuecomment-573745175, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFJKB3DANLENSYE4W6BG4LQ5SIB5ANCNFSM4JQDZXCA .

j6k4m8 avatar Jan 13 '20 17:01 j6k4m8

I tried reinstalling and messed something up, so I'm currently relying on a docker version that is not even loading conversation lists However, I remember being able to use /r to refresh conversations and it worked..

Just tested it, and typing a /r after sending a message remedies the issue. However, it does not seem to refresh the messages after receiving a response.

blandre avatar Jan 14 '20 18:01 blandre

Typing in the message, pressing Enter then typing /r works for me but typing /r constantly to check is a bit of a pain

gregoryfenton avatar Jan 25 '20 12:01 gregoryfenton

To help start to centralize this:

It looks like this code is responsible for handling the explicit refresh command with /refresh or /r:

https://github.com/Alex-Rose/fb-messenger-cli/blob/309d605fa3d2febd59a51f8e93e1512f2b17f497/lib/interactive.js#L431-L437

Might need some other eyes on this, but I believe this code is where the new incoming message triggers a thread refresh:

https://github.com/Alex-Rose/fb-messenger-cli/blob/309d605fa3d2febd59a51f8e93e1512f2b17f497/lib/interactive.js#L264-L267

Actual refresh here:

https://github.com/Alex-Rose/fb-messenger-cli/blob/309d605fa3d2febd59a51f8e93e1512f2b17f497/lib/interactive.js#L285

I can spend more time on this during the weekend, but hopefully this helps us start narrowing down where the bug lives.

j6k4m8 avatar Mar 25 '20 14:03 j6k4m8