diff options
author | James Booth <boothj5@gmail.com> | 2015-01-04 20:19:42 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-01-04 20:19:42 +0000 |
commit | 42a5c431c777ab22c2187bb6f50a62ef304d8d6b (patch) | |
tree | 84fc499f366e477010ffedfd566ad6b540c2eca6 /src/xmpp/stanza.c | |
parent | 4898ed10a45581a98986fed5a2fabe6a6e7a9dab (diff) | |
download | profani-tty-42a5c431c777ab22c2187bb6f50a62ef304d8d6b.tar.gz |
Use resource in chat sessions
Diffstat (limited to 'src/xmpp/stanza.c')
-rw-r--r-- | src/xmpp/stanza.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xmpp/stanza.c b/src/xmpp/stanza.c index 1766fe26..4f1d412d 100644 --- a/src/xmpp/stanza.c +++ b/src/xmpp/stanza.c @@ -199,15 +199,14 @@ stanza_create_bookmarks_pubsub_add(xmpp_ctx_t *ctx, const char * const jid, #endif xmpp_stanza_t * -stanza_create_chat_state(xmpp_ctx_t *ctx, const char * const recipient, - const char * const state) +stanza_create_chat_state(xmpp_ctx_t *ctx, const char * const fulljid, const char * const state) { xmpp_stanza_t *msg, *chat_state; msg = xmpp_stanza_new(ctx); xmpp_stanza_set_name(msg, STANZA_NAME_MESSAGE); xmpp_stanza_set_type(msg, STANZA_TYPE_CHAT); - xmpp_stanza_set_attribute(msg, STANZA_ATTR_TO, recipient); + xmpp_stanza_set_attribute(msg, STANZA_ATTR_TO, fulljid); char *id = create_unique_id(NULL); xmpp_stanza_set_id(msg, id); free(id); |