Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
5 changes: 3 additions & 2 deletions src/headless/plugins/muc/muc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Loading