question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The user will become a ghost after leaving a group.

See original GitHub issue

Environment

  • Environment: all
  • Last git commit: a3351d0
  • Platform: any
  • Browser: chrome

How to repro

  • Step 1: Create a new group and leave the talking page opened.
  • Step 2: Open a new web browser and then use another account to join the group just created.
  • Step 3: Send some messages in the second user.
  • Step 4: Leave the group.
  • Step 5: Back to the first user, clear the browser cache in F12 and then refresh the page.
  • Step 6: You can see the avatar of the second user is always loading and the nickname of it is always New User.

Expected situation

I expect that the message should be deleted or display the correct sender.

Other information

Nothing.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
Xiangrui2019commented, Apr 30, 2019

Solution to this problem: Just check whether the sender of each message is in the group at a time.

Of course, if there are still some optimizations in this method, please point out them.


var messagesprocessed = [];

for (var message in messages) {
    for (var user in group.users) {
       if (message.senderid == user.id) {
            messagesprocessed.append(message);
       }
    }
}
2reactions
Anduin2017commented, Apr 25, 2019

Ok. I will try to find a solution to fix this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is a Ghost User? Are They the Weakest Link in Your ...
“Ghost Users” are active accounts for former employees on the corporate network despite their departure from the company. Ghost users are ...
Read more >
Why Men Ghost - Reasons He Ghosted According To An Expert
The bottom line: If someone ghosts you, there could be a good reason for it. But it might also be a sign they're...
Read more >
WhatsApp Now Lets You Ghost From Group Chats - Forbes
Right now, when you're done, you exit the chat and everybody sees that you've left. It's announced to everyone and can be something...
Read more >
4 Reasons Your Prospects “Ghost” on You and What You Can ...
1) The timing isn't right. · 2) Your solution doesn't fit their needs · 3) They're working on a deal with your competitor...
Read more >
Why People Ghost — and How to Get Over It
But when you get ghosted, there's no closure, so you question yourself and choices which sabotages self-worth and self-esteem.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found