From 388bae084b3c38680facd58c212fe747a02975e5 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 28 Jan 2020 11:42:24 +0100 Subject: [PATCH] Revert "Save first delay tag as timestamp" This reverts commit ef00b10c90aef8b75415fae558789d21bb975d75. According to reply by user in https://github.com/profanity-im/profanity/issues/1254#issuecomment-578389784 it didn't help. --- src/xmpp/message.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/xmpp/message.c b/src/xmpp/message.c index 7f73b9e2..18182e0c 100644 --- a/src/xmpp/message.c +++ b/src/xmpp/message.c @@ -838,15 +838,6 @@ _handle_groupchat(xmpp_stanza_t *const stanza) message->timestamp = stanza_get_delay_from(stanza, jid->domainpart); } - // Above we check whether the timestamps come from the server. So we know it - // is MUC history. - // Now we actually save the first timestamp we can find, since this is likely - // the first one being added. So the time should actually be right one to display. - // TODO: properly compare the dates - if (message->timestamp) { - message->timestamp = stanza_get_delay(stanza); - } - if (message->timestamp) { sv_ev_room_history(message); } else {