Skip to content

Profanity shows old messages as new when connecting to a MUC #1190

@mdosch

Description

@mdosch

When I join a MUC (after reconnect or a fresh start) old messages are often shown as new with a current time stamp.

Expected Behavior

Old messages are not shown as new but are in the right place of the timeline.

Current Behavior

After connect old messages are shown as just received with the current date and time.

Context

A message from 12/09/2019 22:28:34" is shown as received at 13.09.19 07:52:39. Probably related to the second msg with the delay.

grep -r "Martin, we don" ~/.local/share/profanity/logs/
/home/martin/.local/share/profanity/logs/profanity.log.04:12/09/2019 22:28:34: xmpp: DBG: RECV: <message id="5e0efe4f361c4653b58fc9888b7bc145" lang="en" to="martin@mdosch.de/NM2oPdUi" type="groupchat" from="profanity@rooms.dismail.de/pep."><origin-id id="5e0efe4f361c4653b58fc9888b7bc145" xmlns="urn:xmpp:sid:0"/><body>Martin, we don't have the same target as dino or conversations users.</body><stanza-id id="5f5d31ad-6cb0-4ca2-a03f-5c1afaed754a" by="profanity@rooms.dismail.de" xmlns="urn:xmpp:sid:0"/></message>
/home/martin/.local/share/profanity/logs/profanity.log.05:13/09/2019 07:52:39: xmpp: DBG: RECV: <message id="5e0efe4f361c4653b58fc9888b7bc145" lang="en" to="martin@mdosch.de/bHDiwWui" type="groupchat" from="profanity@rooms.dismail.de/pep."><origin-id id="5e0efe4f361c4653b58fc9888b7bc145" xmlns="urn:xmpp:sid:0"/><body>Martin, we don't have the same target as dino or conversations users.</body><stanza-id id="5f5d31ad-6cb0-4ca2-a03f-5c1afaed754a" by="profanity@rooms.dismail.de" xmlns="urn:xmpp:sid:0"/><delay xmlns="urn:xmpp:delay" stamp="2019-09-12T20:28:34Z" from="rooms.dismail.de"/><x xmlns="jabber:x:delay" stamp="20190912T20:28:34" from="rooms.dismail.de"/></message>

Environment

Debian bullseye (testing)

profanity --version
Profanity, version 0.7.0dev.master.6cf06dc5
Copyright (C) 2012 - 2019 James Booth <boothj5web@gmail.com>.
Copyright (C) 2019 Michael Vetter <jubalh@iodoru.org>.
License GPLv3+: GNU GPL version 3 or later <https://www.gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Build information:
XMPP library: libstrophe
Desktop notification support: Enabled
OTR support: Enabled (libotr 4.1.1)
PGP support: Enabled (libgpgme 1.13.1-unknown)
OMEMO support: Enabled
C plugins: Enabled
Python plugins: Enabled (2.7.16+)
GTK icons: Enabled
steam has logged on :0 from :0.     

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions