Jelajahi Sumber

Fixes #1330. Missing room name in MUC invitation popup

JC Brand 6 tahun lalu
induk
melakukan
b57e3e49c1
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 0
      CHANGES.md
  2. 1 1
      src/converse-muc-views.js

+ 1 - 0
CHANGES.md

@@ -27,6 +27,7 @@
 - New event: [chatReconnected](https://conversejs.org/docs/html/api/-_converse.html#event:chatReconnected)
 - #316: Add support for XEP-0198 Stream Management
 - #1296: `embedded` view mode shows `chatbox-navback` arrow in header
+- #1330: Missing room name in MUC invitation popup
 - #1465: When highlighting a roster contact, they're incorrectly shown as online
 - #1532: Converse reloads on enter pressed in the filter box
 - #1550: Legitimate carbons being blocked due to erroneous forgery check

+ 1 - 1
src/converse-muc-views.js

@@ -2046,7 +2046,7 @@ converse.plugins.add('converse-muc-views', {
                     reason = prompt(
                         __('You are about to invite %1$s to the groupchat "%2$s". '+
                            'You may optionally include a message, explaining the reason for the invitation.',
-                           suggestion.text.label, this.model.get('id'))
+                           suggestion.text.label, this.chatroomview.model.getDisplayName())
                     );
                 }
                 if (reason !== null) {