From c8befa2c9e11d8f5d3317327bd95d987085ceaa4 Mon Sep 17 00:00:00 2001 From: mjentsch Date: Mon, 7 Dec 2015 23:45:15 +0100 Subject: [PATCH] Display correct display time for special chats Bug was introduced a few commits earlier in the test branch during refactoring. --- tgp-msg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tgp-msg.c b/tgp-msg.c index a042c88..4e67926 100644 --- a/tgp-msg.c +++ b/tgp-msg.c @@ -255,7 +255,7 @@ static int tgp_msg_send_split (struct tgl_state *TLS, const char *message, tgl_p void tgp_msg_special_out (struct tgl_state *TLS, const char *msg, tgl_peer_id_t to_id, int flags) { if (tgl_get_peer_type (to_id) == TGL_PEER_CHAT) { - p2tgl_got_chat_in (TLS, to_id, to_id, msg, flags, 0); + p2tgl_got_chat_in (TLS, to_id, to_id, msg, flags, time(0)); } else { // Regular IM conversations will not display specialized message flags like PURPLE_MESSAGE_ERROR or // PURPLE_MESSAGE_SYSTEM correctly when using serv_got_in, therefore it is necessary to use the underlying @@ -267,7 +267,7 @@ void tgp_msg_special_out (struct tgl_state *TLS, const char *msg, tgl_peer_id_t // if the conversation isn't open yet, create one with that name conv = purple_conversation_new (PURPLE_CONV_TYPE_IM, tls_get_pa (TLS), name); } - purple_conversation_write (conv, name, msg, flags, 0); + purple_conversation_write (conv, name, msg, flags, time(0)); } }