question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Singleton mode doesn't work

See original GitHub issue

Describe the bug The Prosody web chat is using the embedded view mode

To Reproduce Steps to reproduce the behavior:

  1. Configure with both singleton:true and view_mode:"embedded"
  2. ???
  3. 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:closed
  • Created 2 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
JohnXLivingstoncommented, Nov 8, 2021

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.

2reactions
jcbrandcommented, Sep 24, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found