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

Fix conversation switching lag #5084

Merged
merged 6 commits into from
Feb 24, 2021
Merged

Conversation

marcoambrosini
Copy link
Member

@marcoambrosini marcoambrosini commented Feb 5, 2021

Immediately display messages from the clicked conversation even if not joined yet with the signaling server.
In order to avoid errors, the call button and the newmessagegorm components are disabled while opening the new session.

TODO:

  • Emoji button stays disabled;
Peek.2021-02-10.17-00.mp4

@nickvergessen

This comment has been minimized.

@marcoambrosini

This comment has been minimized.

@marcoambrosini marcoambrosini force-pushed the fix-conversation-switch-lag branch from 85f5e54 to 0983e5e Compare February 10, 2021 17:00
@marcoambrosini marcoambrosini changed the title Immediately trigger mesasgelist loading state upon clicking on a different conversation Fix conversation switching lag Feb 10, 2021
@marcoambrosini marcoambrosini force-pushed the fix-conversation-switch-lag branch 2 times, most recently from c2a3ce7 to d4f216f Compare February 11, 2021 15:39
@marcoambrosini marcoambrosini force-pushed the fix-conversation-switch-lag branch from d4f216f to 3a14ec2 Compare February 12, 2021 10:09
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
@marcoambrosini marcoambrosini force-pushed the fix-conversation-switch-lag branch from 3a14ec2 to 3748a6b Compare February 16, 2021 08:43
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
@marcoambrosini
Copy link
Member Author

Ping @nickvergessen

@PVince81
Copy link
Member

I like how joining feels much faster!

Now when there are new messages that haven't been loaded, you see the old state of the message list with "Joining conversation at the bottom". At this point, do we want to also display a placeholder below the existing messages in the place where new messages might appear ? There's a way to find out if there are new messages by checking that the lastMessage id is different. Not sure if that's a good idea though. 😄

Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
@marcoambrosini
Copy link
Member Author

Addressed the disabled state of action here nextcloud-libraries/nextcloud-vue#1724

Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@marcoambrosini marcoambrosini merged commit f176737 into master Feb 24, 2021
@marcoambrosini marcoambrosini deleted the fix-conversation-switch-lag branch February 24, 2021 15:38
@PVince81
Copy link
Member

follow up here to clean up some bits: #5266

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants