Skip to content

Friend status and chat log not updating from the receivers perspective in real time #64

@SuperGamer001

Description

@SuperGamer001

I'm experiencing major logic errors when it comes to interacting with friends, most of which is from when the user sends, receives, and accepts a request.

Issues I've found that need fixing:

  • After accepting a friend request, the friend will appear on the list right then and there, but will appear offline regardless if they are actually online or not.
  • The new friend that accepted a request will not appear on requester's list till he refreshes.
  • If a friend creates a new chat, any friends that are currently online will not see the new conversation until he refreshes the page. Ironically, this allows users to create non-working duplicates of those conversations that will take up unnecessary space.

To fix the first two, we'll need to update the requester when the user accepts the request. This will add each other to the friends lists, update each other on their online status, and both users will receive a Toast Notification that they are now friends.

To fix the last issue, when a user creates a new conversation on the chat, all users who are in the new conversation must receive an update about it internally and see it appear on the conversations list right then and there.

Metadata

Metadata

Labels

app specificAn issue specific to an app on the website (must describe what that app is)back endSomething that has to do with the back end (server stuff, database, JS, npm)bugSomething isn't workingfront endSomething that has to do with the front end (HTML/CSS, Three.js)javascriptPull requests that update javascript codenpm packege(s)Anything that has to do with one or more npm package.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions