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

Teams v2 meeting links are always sent to an external brower rather than captured #1289

Closed
pablob127 opened this issue Jun 7, 2024 · 18 comments · Fixed by #1293
Closed

Teams v2 meeting links are always sent to an external brower rather than captured #1289

pablob127 opened this issue Jun 7, 2024 · 18 comments · Fixed by #1293

Comments

@pablob127
Copy link

Teams for Linux used to (somehow) process links to join meetings so that the meeting will run inside the app.
Since the the change to Teams v2 (or at least it feels like), links to join meetings always open in an external browser, and I have not been able to find a way to join a meeting in the app.

To Reproduce

  1. Enter a link in a chat of the form: https://teams.microsoft.com/l/meetup-join/19%3ameeting, the old Teams style.
  2. When you click on the link, nothing happens (maybe because the link is not correct?)
  3. The debug output says: [DEBUG] DEBUG - captured meetup-join url
  4. Enter instead a new-style link: https://teams.microsoft.com/v2/?meetingjoin=true#/l/meetup-join/19:ameeting
  5. When you click on the link, it always opens it in an external browser.
  6. The debug output now says [DEBUG] Requesting to open 'https://teams.microsoft.com/v2/?meetingjoin=true#/l/meetup-join/19

Expected behavior
When clicking on a new-style meeting join link, I would expect the "meetingjoin" URL to be captured so it is opened inside the app, not in an external browser.

Desktop (please complete the following information):

  • OS: Debian GNU/Linux v12
  • Installed from the repository at repo.teamsforlinux.de
  • Version 1.5.1
@pablob127
Copy link
Author

Note that this breaks the workaround discussed in #675 (that I used to use).

@IsmaelMartinez
Copy link
Owner

If you paste that link into a channel and click from it, does it work?

@pablob127
Copy link
Author

No, if I paste the link into a channel, and then click it is also opened straight into the external browser. The debug log says [DEBUG] Requesting to open 'https://teams.microsoft.com/v2/?meetingjoin=true#/l/meetup-join/19'

@IsmaelMartinez
Copy link
Owner

IsmaelMartinez commented Jun 8, 2024 via email

@IsmaelMartinez
Copy link
Owner

IsmaelMartinez commented Jun 9, 2024

I think is this regex https://github.com/IsmaelMartinez/teams-for-linux/blob/develop/app/mainAppWindow/index.js#L209 should also be applied in https://github.com/IsmaelMartinez/teams-for-linux/blob/develop/app/mainAppWindow/index.js#L300 .

image

If you start teams passing the meeting link as the URL, it should open the meeting.

teams-for-linux --url="https://teams.microsoft.com/v2/?meetingjoin=true#/l/meetup-join/19" (or something like that)

@pablob127
Copy link
Author

If you start teams passing the meeting link as the URL, it should open the meeting.

teams-for-linux --url="https://teams.microsoft.com/v2/?meetingjoin=true#/l/meetup-join/19" (or something like that)

That does seem to work. The UI got a bit confused when I cancelled my joining (after all the meeting link was old).
It did not work to do that if teams-for-linux was already running, though.
I agree with you, it seems the same regex should be applied in both places.

@IsmaelMartinez
Copy link
Owner

Can you check the pre-release 1.7.1? It should be able to handle the regEx a bit better or at least now we have the option to handle it in a config option.

@pablob127
Copy link
Author

Can you check the pre-release 1.7.1? It should be able to handle the regEx a bit better or at least now we have the option to handle it in a config option.

It did not work. I get an error window. For some reason I cannot copy the message, so I am pasting a screenshot.
Screenshot_2024-06-13_13-42-59
That happens for every link I click, so I imagine it is something a bit more general that broke when trying to fix this.

@IsmaelMartinez
Copy link
Owner

yep, that would be me having added a bug while trying to fix this. I don't know when I will have time to look into this. Probably just use 1.7.0 (or 1.6.1)

@IsmaelMartinez
Copy link
Owner

Hi, can you try 1.7.1 again? @jonatasrs just fixed that issue you were seeing and it might improve that area.

@pablob127
Copy link
Author

I tried the new 1.7.1, and now clicking on the links (or ctrl-clicking, or right-clicking and selecting "open link") does not do anything. Could you point me again to the command-line arguments for debugging? I tried with --webDebug, and that did not show anything when trying to open the links, and I could not find where I found arguments before.

@IsmaelMartinez
Copy link
Owner

teams-for-linux --webDebug --appLogLevels=error,info,warn,debug

@pablob127
Copy link
Author

Ok, I have more precisions now:

  1. When opening regular (non-meeting links), those work well and are sent to an external browser.
  2. When clicking on the meeting links (either v1 or v2), nothing happens but the debug log says:
    [DEBUG] testing RegExp onNewWindow true
    [DEBUG] DEBUG - captured meetup-join

So the regex is working, but somehow when it is true it does not lead to opening the join meeting widget.

@IsmaelMartinez
Copy link
Owner

IsmaelMartinez commented Jun 14, 2024 via email

@pablob127
Copy link
Author

Somehow I lost version 1.7.1, but when I tried the focus seems to stay in the Teams-for-Linux window (or at least that's what I remember).

@PauloGDPeixoto
Copy link

PauloGDPeixoto commented Jun 20, 2024

I have the exact same behaviour that @pablob127 is reporting. I have some calendar entries where I manually inserted the meeting link, and I'm not able to join directly by clicking on the link. Observing the debug log I can see those lines (testing RegExp and captured meetup-join) being written when I click the link.

I found one meeting link that works when I click, and that single one, instead of outputting those log lines, outputs this:

[DEBUG] Badge count set to '1'
[DEBUG] Badge count set to '1'

@PauloGDPeixoto
Copy link

Poking around I found that, if the meeting details window collapses the join info (by displaying a "Show join info" link), the link works, otherwise, it doesn't.

@IsmaelMartinez
Copy link
Owner

This is a current limitation we have. Closing this in favor of #1098 as the original issue is now solved, but the one that stays is a duplicated one. Thanks

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

Successfully merging a pull request may close this issue.

3 participants