-
-
Notifications
You must be signed in to change notification settings - Fork 763
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
Singleton mode doesn't work #2647
Comments
Can confirm we have the same issue on a few webchats, all use the singleton option. |
I believe this should be fixed now. Let me know if there are still issues. |
BTW, this fix contains breaking changes, so will only be able to go out in Converse 9 (which probably won't take as long to release like Converse 8). For now you'll have to make the builds yourself if you want to use the latest code. |
I have tested with the |
Can you please add in the v8.0.0 and/or v8.0.1 release notes that singleton mode is broken? |
Looking at your commit 84c6a00 , I see the following comment:
You have modified the demo/embedded.html to replace But the fullscreen.html file ( https://github.com/conversejs/converse.js/blob/master/fullscreen.html ) was not modified, and don't have the
Is this correct? What will be the correct way to have a singleton mode, in a fullscreen page? (for v9) |
@JohnXLivingston The text you quoted is specifically when you want to control where Converse gets embedded into the DOM (which generally would be when you've set For a full page Converse ( The |
Thanks for your response! |
I think I did, but it's been a while back. It's fairly easy to build Converse from the latest source (at least on Linux or Mac). Just check out the repo and then run It would help if more people did that and reported whether their issues are fixed. |
I'll test it next week, and tell you if it is working. |
With the current version in the git repository, I can confirm that singleton mode is working for fullscreen mode. But, there is a styling problem. I'll open a new issue. |
@lunika: Looks fine to me. You need to rebuild the distribution files via |
Yes this is what I made. I built converse using |
This sentence doesn't make sense to me. What do you mean? |
When I inspect the DOM with the developer console in my browser, in the code generated by converse, a |
If a Perhaps you just need to add the |
Describe the bug
The Prosody web chat is using the embedded view mode
To Reproduce
Steps to reproduce the behavior:
singleton:true
andview_mode:"embedded"
Roug minimal config along these lines:
Setting
singleton:false
(or commenting it out) makes it sorta work, but the single chat does not take up the entire viewport, leaving space roughly the size of the missing controlbox.More complete example with HTML etc in the form of an attempt to upgrade chat.prosody.im to Converse.js 8.x
Expected behavior
Expected the Prosody web chat but with Converse.js 8.x goodies :)
Screenshots
Imagine a blank page.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: