ubports / telegram-app

Unofficial Telegram App for Ubuntu Desktop & Mobile
GNU General Public License v3.0
55 stars 23 forks source link

Web invite doesn't seems to work #120

Open dark-eye opened 6 years ago

dark-eye commented 6 years ago

It seems that the Telegarm doesn't catches "ts:" urls so clicking web invites doesn't open the Telegarm App.

To Reproduce:

  1. Using the browser App go to https://ubports.com/ or http://www.dekkoproject.org
  2. Click on the Telegram link at the bottom
  3. Click on Join/View Group

Expected Result:

  1. Telegarm App Opens
  2. App tries/join the group linked by the Web-link.

Actual Result:

  1. Nothing happens
Flohack74 commented 6 years ago

This is fully a problem of oxide and not Telegram. It needs to be implemented in the web browser. Unfortunately the URL handling on the phone is much more complicated than on the desktop. At least I think so, but I will see what I can do. Meanwhile with the next beta you can join with a link sent to you in Telegram, this will work nicely :)

Flohack74 commented 6 years ago

@dark-eye can you try to e.g. send an invite link to yourself and then click it to join?

dobey commented 6 years ago

I'm not sure if this changed since then, but now it is a tg:// URL, which the urls.json in telegram-app does not handle at all. It looks like these URLs might need to be parsed differently as well.

mymike00 commented 6 years ago

I tried tapping on a link made like https://t.me/chat-name inside the telegram app: it didn't ask/say me anything but I saw I joined that chat, so a partial support is already implemented

Flohack74 commented 6 years ago

Yes inside the App it works already ;) Also you should notice that in latest Git build the App opens but does not handle the URL yet.

Flohack74 commented 6 years ago

See https://github.com/ubports/telegram-app/commit/35c9143776e124bb3b32844b0dd17324a20c527b