Jelajahi Sumber

Fix issue with chat display when opening via URL (#3273)

* Fix issue with chat display when opening via URL

This commit addresses issue #2716 where a chat opened via URL does not display when there is already an open chat. The changes ensure that the new chat overlaps the current conversation as expected.
Azar malik 1 tahun lalu
induk
melakukan
f05271dab8
2 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 4 1
      CHANGES.md
  2. 1 1
      src/headless/plugins/muc/utils.js

+ 4 - 1
CHANGES.md

@@ -2,6 +2,9 @@
 
 ## 11.0.0 (Unreleased)
 
+
+- #2716: Fix issue with chat display when opening via URL
+
 Breaking changes:
 - Remove the old `_converse.BootstrapModal` in favor of `_converse.BaseModal` which is a web component.
 
@@ -9,7 +12,7 @@ Breaking changes:
 
 - #3246: Badge color not responsive to dark theme
 - Fix a GIF rendering bug that causes a memory overflow
-
+  
 ## 10.1.5 (2023-06-29)
 
 - #3209: Fix error when importing the `converse` global with bootstrap modal API

+ 1 - 1
src/headless/plugins/muc/utils.js

@@ -73,7 +73,7 @@ export async function routeToRoom (jid) {
     if (api.settings.get('allow_bookmarks')) {
         await api.waitUntil('bookmarksInitialized');
     }
-    api.rooms.open(jid);
+    api.rooms.open(jid, {}, true);
 }
 
 /* Opens a groupchat, making sure that certain attributes