mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Free timestamp and id for receipts
This commit is contained in:
parent
dea10ecfdc
commit
0410dd90f1
@ -940,6 +940,7 @@ win_print_with_receipt(ProfWin *window, const char show_char, int pad_indent, GT
|
|||||||
_win_print(window, show_char, pad_indent, time, flags, theme_item, from, message, receipt);
|
_win_print(window, show_char, pad_indent, time, flags, theme_item, from, message, receipt);
|
||||||
// TODO: cross-reference.. this should be replaced by a real event-based system
|
// TODO: cross-reference.. this should be replaced by a real event-based system
|
||||||
ui_input_nonblocking(TRUE);
|
ui_input_nonblocking(TRUE);
|
||||||
|
g_date_time_unref(time);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -581,9 +581,10 @@ _message_send_receipt(const char * const fulljid, const char * const message_id)
|
|||||||
xmpp_conn_t * const conn = connection_get_conn();
|
xmpp_conn_t * const conn = connection_get_conn();
|
||||||
xmpp_ctx_t * const ctx = connection_get_ctx();
|
xmpp_ctx_t * const ctx = connection_get_ctx();
|
||||||
xmpp_stanza_t *message = xmpp_stanza_new(ctx);
|
xmpp_stanza_t *message = xmpp_stanza_new(ctx);
|
||||||
char *id = create_unique_id("receipt");
|
|
||||||
xmpp_stanza_set_name(message, STANZA_NAME_MESSAGE);
|
xmpp_stanza_set_name(message, STANZA_NAME_MESSAGE);
|
||||||
|
char *id = create_unique_id("receipt");
|
||||||
xmpp_stanza_set_id(message, id);
|
xmpp_stanza_set_id(message, id);
|
||||||
|
free(id);
|
||||||
xmpp_stanza_set_attribute(message, STANZA_ATTR_TO, fulljid);
|
xmpp_stanza_set_attribute(message, STANZA_ATTR_TO, fulljid);
|
||||||
|
|
||||||
xmpp_stanza_t *receipt = xmpp_stanza_new(ctx);
|
xmpp_stanza_t *receipt = xmpp_stanza_new(ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user