Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Online presence and Last Seen issue #50

Closed
Okdone opened this issue May 25, 2020 · 12 comments
Closed

Online presence and Last Seen issue #50

Okdone opened this issue May 25, 2020 · 12 comments
Assignees
Labels
backend bug Something isn't working

Comments

@Okdone
Copy link

Okdone commented May 25, 2020

We are testing the Alpha+4 build and enabled Presence and Last Seen in the application. Before doing that we figured out how to check information from server by logging and quering it at API level.

What we observed is a inconsistent behavior from client on updating the status to server.

Even if we kill the application of user A it keeps showing online on user B, and this goes on even if we restart application of User B it keeps showing user A as online. Secondly if User A is showing "5 mins back" to User B and we stop application on user B and then start application on user A send a message and stop it, it should show "few seconds or 1 min" back on user B but it shows "6 mins" back which means user A did not update the information to server correctly, to reverify it we checked on server and it was not updated. Same behavior if we interchange User A and User B or user C and user D, etc, so it is reproducible.

But at the same it is not happening every time, sometimes it is updating the information on server and we are able to see correctly.
Also we have checked with API response, user last active not showing correctly sometimes.

@imtoori
Copy link
Contributor

imtoori commented May 26, 2020

the problem is that the client does not update user information depending on events
I'm working on this, so it'll be ready soon

@imtoori imtoori added the bug Something isn't working label May 26, 2020
@imtoori imtoori self-assigned this May 26, 2020
@imtoori
Copy link
Contributor

imtoori commented May 28, 2020

@Okdone can you try the latest version 0.2.1-alpha+6?

@Okdone
Copy link
Author

Okdone commented May 28, 2020

image

Have you pushed 0.2.1-alpha+6 ?

@imtoori
Copy link
Contributor

imtoori commented May 28, 2020

yes I have, the tag was still to be pushed, but you can find it on pub.dev

@Okdone
Copy link
Author

Okdone commented May 30, 2020

This issue still not solved "last Active" time is still displaying old time not updated with latest time. Also even if other user app is killed showing online sometimes and keeps showing online.

@imtoori
Copy link
Contributor

imtoori commented Jun 2, 2020

are you talking about the time shown in the ChannelHeader subtitle?

@Okdone
Copy link
Author

Okdone commented Jun 2, 2020

No, in ChannelHeader time is last message time, but i am talking about user.lastActive.
(using by user.presence.changed).

@imtoori
Copy link
Contributor

imtoori commented Jun 2, 2020

hey @Okdone
I found the problem. It's a backend bug, we are looking into. I'll keep you updated, thanks

@imtoori imtoori added the backend label Jun 2, 2020
@damithsynapsys
Copy link

@imtoori Hey,
this was happening the react-native also.

@imtoori
Copy link
Contributor

imtoori commented Jan 8, 2021

Hey @damithsynapsys this should be solved by now, do you still have this issue?

@damithsynapsys
Copy link

yes, @imtoori. here are my environment details.
"react": "16.13.1",
"react-native": "0.63.4",
"stream-chat": "^2.8.0",
"stream-chat-react-native": "^2.1.1",

"if User A is showing "5 mins back" to User B and we stop the application on user B and then start application on user A send a message and stop it, it should show "few seconds or 1 min" back on user B but it shows "6 mins" back which means user A did not update the information to the server correctly, to reverify it we checked on server and it was not updated. "

the above scenario is still on there.

@imtoori
Copy link
Contributor

imtoori commented Jan 8, 2021

Can I ask you to contact support for this issue?
Here we're supposed to have only flutter-related issues
@damithsynapsys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants