-
Notifications
You must be signed in to change notification settings - Fork 794
Conversation
Quick question: Can you mention someone (type @ and then their name) and still write things after the mention without it disappearing? The mention disappears for me (name goes from blue to regular black) whenever I type something after the mention. I've found this happens whenever I use Edge as the user agent. For example type this (replace "name" with an actual name in your team): |
@Laxen I don't see that issue. To make sure I understand you correctly, say there is a user named "Homer J Simpson", if I type |
Yes that is exactly the way I'm doing it. I start typing the name then to select the user and their full name appears in the text box in blue color. Then I press because I want to write a message after the name, and after ~0.5 seconds the color of the name turns into the same color as regular text. When I send the message it's no longer a mention, it's just regular text. However I just noticed that after you press to get the users full name in your text box, you can then quickly type a message and the mention will stay (everything you type will become blue). However if you pause for ~0.5 seconds the text will turn into regular text and it won't be a mention anymore. I have the exact same problem in another client (teams-for-linux) when I add Edge to user agents. Calls work, but mentions break. But it's strange if you don't have the same problem, that suggests there's something else going on... |
Running your workaround code works for me too (I get normal mentions and calls are enabled). I dived into the Rambox source to find out when the "custom code" is executed and found the following:
I've tried injecting your script at other places but none seem to work, for some reason it needs to be injected when the "dom-ready" event fires or we get the problem with mentions. I have very little knowledge of Electron and JavaScript so I can't really explain why without reading up on it. I can also mention that I hacked this into teams-for-linux and it works in the same way there as well. Which means I can get it to work there by adding the "dom-ready" listener and using your code. Awesome! |
@Laxen Thank you for the insight! I have adjusted to PR to take the "workaround" solution (adjust user agent after dom ready) and embed it into the app. If you wouldn't mind checking that it works for you too, I would appreciate that a lot |
Seems to work well, both mentions and calls work perfectly with this fix now! Didn't see that other services modified js_unread in that list before, that is a neat solution. |
Thank you! |
Congrats on merging your first pull request! We here at Rambox are proud of you! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Use an Edge browser user string to enable video chats. Tested on Antergos Linux