diff options
author | V V <vvaltman@aurum> | 2015-10-27 00:56:12 +0300 |
---|---|---|
committer | V V <vvaltman@aurum> | 2015-10-27 00:56:12 +0300 |
commit | f20d6c1b164d9413f0cfb699e08779f0d1e8c180 (patch) | |
tree | 38fc5b353d0a99c2c9492ea484af5976bc6019f5 /binlog.c | |
parent | 5b725d288f59ada3f8905a73182fe57ae8c22986 (diff) |
added entity support
Diffstat (limited to 'binlog.c')
-rw-r--r-- | binlog.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -274,7 +274,7 @@ void bl_do_chat_del_user (struct tgl_state *TLS, tgl_peer_id_t id, int version, } /* }}} */ -void bl_do_edit_message (struct tgl_state *TLS, tgl_message_id_t *id, tgl_peer_id_t *from_id, tgl_peer_id_t *to_id, tgl_peer_id_t *fwd_from_id, int *fwd_date, int *date, const char *message, int message_len, struct tl_ds_message_media *media, struct tl_ds_message_action *action, int *reply_id, struct tl_ds_reply_markup *reply_markup, int flags) /* {{{ */ { +void bl_do_edit_message (struct tgl_state *TLS, tgl_message_id_t *id, tgl_peer_id_t *from_id, tgl_peer_id_t *to_id, tgl_peer_id_t *fwd_from_id, int *fwd_date, int *date, const char *message, int message_len, struct tl_ds_message_media *media, struct tl_ds_message_action *action, int *reply_id, struct tl_ds_reply_markup *reply_markup, struct tl_ds_vector *entities, int flags) /* {{{ */ { assert (!(flags & 0xfffe0000)); struct tgl_message *M = tgl_message_get (TLS, id); @@ -348,6 +348,10 @@ void bl_do_edit_message (struct tgl_state *TLS, tgl_message_id_t *id, tgl_peer_i assert (!(M->flags & TGLMF_SERVICE)); } + if (entities) { + tglf_fetch_message_entities (TLS, M, entities); + } + if (reply_id) { M->reply_id = *reply_id; } |