mattermost / mattermost-mobile

Next generation iOS and Android apps for Mattermost in React Native
https://about.mattermost.com/
Apache License 2.0
2.22k stars 1.34k forks source link

The client displays images slightly slowly. #7998

Open NCPSNetworks opened 4 months ago

NCPSNetworks commented 4 months ago

Per Mattermost guidelines, GitHub issues are for bug reports: http://www.mattermost.org/filing-issues/.

For troubleshooting see: http://forum.mattermost.org/. For feature proposals see: http://www.mattermost.org/feature-requests/

If you've found a bug--something appears unintentional--please follow these steps:

  1. Confirm you’re filing a new issue. Search existing tickets in Jira to ensure that the ticket does not already exist.
  2. Confirm your issue does not involve security. Otherwise, please see our Responsible Disclosure Policy.
  3. File a new issue using the format below. Mattermost will confirm steps to reproduce and file in Jira, or ask for more details if there is trouble reproducing it. If there's already an existing bug in Jira, it will be linked back to the GitHub issue so you can track when it gets fixed.

Summary

I tried the Mattermost web version on Safari and the Mattermost native client on iOS. The web version (iOS Safari) is significantly faster than the mobile client. The web version displays images almost instantly, while the mobile client takes 0.5-1 second on high-end devices and up to 2 seconds on some devices.

Environment Information

Steps to reproduce

  1. Click on a channel from the channel list that contains images.
  2. Observe that the images initially appear very blurry and then become clear (noticing an unexpected delay).

Expected behavior

should display without noticeable delay; they should not take approximately 1 second to clear, even on high-end devices.

Observed behavior (that appears unintentional)

Mattermost mobile iOS 2.16.0

https://github.com/mattermost/mattermost-mobile/assets/138641616/7353e178-7610-471e-bed4-d993f8a74c30

Mattermost (Safari)

https://github.com/mattermost/mattermost-mobile/assets/138641616/78bf3247-7d0c-4ca4-a9c7-5056cac5e2a2

Possible fixes

If you can, link to the line of code that might be responsible for the problem

amyblais commented 3 months ago

Opened https://mattermost.atlassian.net/browse/MM-58678.