1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-16 21:35:24 +00:00

Display headline sender

This commit is contained in:
Michael Vetter 2023-08-11 15:56:26 +02:00
parent a17544d962
commit 492efc432c

View File

@ -118,7 +118,10 @@ _handle_headline(xmpp_stanza_t* const stanza)
if (body) {
char* text = xmpp_stanza_get_text(body);
if (text) {
cons_show("Headline: %s", text);
const char* const stanza_from = xmpp_stanza_get_from(stanza);
if (stanza_from) {
cons_show("Headline from %s: %s", stanza_from, text);
}
xmpp_free(connection_get_ctx(), text);
}
}