diff --git a/CHANGES.md b/CHANGES.md index 2139f5d7b4..06bfdceb86 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,6 +7,7 @@ - #3829: Rich text from LibreOffice Calc is sent as screenshots - #3830: The message textarea blocks undo of the pasted text - #3863: Shift `unescapeHTML` helper function (used to set `isOnlyEmoji` on a message) to converse-headless +- #3889: MUC join: Use room jids localpart as name in case name or identity not found ## 12.0.0 (2025-08-28) diff --git a/src/headless/plugins/muc/muc.js b/src/headless/plugins/muc/muc.js index 3528172f18..f07b931436 100644 --- a/src/headless/plugins/muc/muc.js +++ b/src/headless/plugins/muc/muc.js @@ -1276,11 +1276,12 @@ class MUC extends ModelWithVCard(ModelWithMessages(ColorAwareModel(ChatBoxBase)) * @returns {Promise} */ async getDiscoInfo() { - const identity = await api.disco.getIdentity('conference', 'text', this.get('jid')); + const jid = this.get('jid'); + const identity = await api.disco.getIdentity('conference', 'text', jid); if (identity?.get('name')) { this.save({ name: identity.get('name') }); } else { - log.error(`No identity or name found for ${this.get('jid')}`); + this.save({ name: Strophe.getNodeFromJid(jid) }); } await this.getDiscoInfoFields(); await this.getDiscoInfoFeatures();