diff options
author | Michael Vetter <jubalh@iodoru.org> | 2022-05-23 08:02:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-23 08:02:04 +0200 |
commit | b4523d6c42825bda175663730001302adb21b95e (patch) | |
tree | 27cf76ce89d912d36a5725c71e739969644ae89d /src/xmpp | |
parent | b4dc4f69c10b97c102de03015db437d0cdcb27ee (diff) | |
parent | 4ea1ed832408518841b74d29fb745b9318a730f6 (diff) | |
download | profani-tty-b4523d6c42825bda175663730001302adb21b95e.tar.gz |
Merge pull request #1711 from MarcoPolo-PasTonMolo/fix/roomname-update
Fix room name not updating.
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/iq.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 1cac9096..c97fcbad 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -891,6 +891,14 @@ _caps_response_id_handler(xmpp_stanza_t* const stanza, void* const userdata) } else { log_debug("Capabilities not cached: %s, storing", given_sha1); EntityCapabilities* capabilities = stanza_create_caps_from_query_element(query); + + // Update window name + ProfMucWin* win = wins_get_muc(from); + if (win != NULL) { + free(win->room_name); + win->room_name = strdup(capabilities->identity->name); + } + caps_add_by_ver(given_sha1, capabilities); caps_destroy(capabilities); } |