Singleton mode doesn't work
See original GitHub issueDescribe the bug The Prosody web chat is using the embedded view mode
To Reproduce Steps to reproduce the behavior:
- Configure with both
singleton:true
andview_mode:"embedded"
- ???
- Blank page
Roug minimal config along these lines:
converse.initialize({
"auto_join_rooms" : ["group@chat.example"],
"auto_login" : true,
"blacklisted_plugins" : [
"converse-controlbox",
],
"bosh_service_url" : "/bosh",
"discover_connection_methods" : false,
"jid" : "anonymous.sasl.chat.example",
"singleton" : true,
"view_mode": "embedded"
});
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):
- Firefox 78 ESR (also tested on FF 91 earlier)
- Converse.js v8.0.0
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:18 (7 by maintainers)
Top Results From Across the Web
[Singleton(Mode = SingletonMode.Listener)] doesn't work for ...
Hi, I need to process items sequentially. I have the following: [Singleton(Mode = SingletonMode.Listener)] [FunctionName("FunctionName")] public static void ...
Read more >Why is my C# Singleton not working? - Stack Overflow
The problem occurs here. The “Person” object does not get populated! I've tried doing this in another form where I have not modified...
Read more >Java Singleton Problems - Wiki
Using the SingletonPattern in a Java application seems to be a straight forward task. However, the reality is different. There are at least...
Read more >Implementing the Singleton Pattern in C#
It doesn't work in Java. This may seem an odd thing to comment on, but it's worth knowing if you ever need the...
Read more >My singleton template does'nt work - TI E2E
Hi, This singleton code doesn't work ... This code should work just fine in EABI mode, regardless of whether inlining occurs.".
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.