Link previews inconsistent between desktop & mobile

Description

The behavior of embedded link previews is not the same between the regular browser client and the official mobile (Android/iPhone) client. What I’m seeing is that when I paste a directly-linked image (ending in .jpg or similar), the desktop client will display a preview for it properly. In the mobile client, there will be no preview shown.

The Autolinker function is similarly inconsistent, and changing the Regex field doesn’t seem to have any effect. A good example is direct links for https://i.redd.it images. These are hyperlinked and previewed properly on the desktop client, no issues there. However, on the mobile client these links are NOT hyperlinked and no preview is shown. I’ve tried editing the RegEx field in Settings to account for i.redd.it links, nothing I do seems to make a difference. I’ve tried restarting the RocketChat instance after changing it, no difference.

SOME links do get a preview properly in the mobile client, but not direct image links. If I link http://dilbert.com, for example, that gets a preview in the mobile client just fine. YouTube videos get an embed preview as well.

Server Setup Information

  • Version of Rocket.Chat Server: 4.8.3
  • Operating System: Ubuntu
  • Deployment Method: Snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v14.18.3
  • MongoDB Version: 4.2.17 / wiredTiger (oplog Enabled)
  • Proxy: caddy (snap version, auto SSL)
  • Firewalls involved: Firewalla Gold

Hi! Welcome to our community :slight_smile:

First, we should consider that both web app and the desktop app are almost the same code running, except that the desktop app is a “shell” that run the web app inside of it and provide some other features.

The mobile, on the other hand, is a React Native, and a totally different code from the web and desktop app.

The best place to report this is, as an issue, is GitHub - RocketChat/Rocket.Chat.ReactNative: Rocket.Chat mobile clients

Also, if you want to help us test and improve the mobile app, feel free to hang with us here: