Add date stamp for current messages

Description

Dates are used to separate pieces of the chat history, but not for the "current" chat history. This:
http://www.igniterealtime.org/community/message/162331

has a really great description of what happens.

Environment

None

Activity

Show:
wroot
March 28, 2014, 12:36 PM

Patch link is not working anymore. Also current messages are separated with a divider line and old messages has a bit dimmer font color, which should be enough to separate new and old messages in the current history. Of course, if someone provides a patch for the current source, which will add data stamp for new messages, it can be added.

wroot
September 4, 2015, 5:20 PM

Adapted a patch from Niklas Schaefer from https://community.igniterealtime.org/message/183725#183725
Now Spark appends a date for coming messages if there is no a date stamp of that date already in the history.

wroot
September 14, 2015, 10:34 AM

This change is creating an issue that the sent and received messages are not shown when there is no older messages in the chat window (both regular chats and muc). So, commenting the patch code out and will leave it for someone with better java skills to fix.

This is the commit commenting the code: https://github.com/igniterealtime/Spark/pull/34/files

wroot
January 24, 2016, 11:46 AM

Reattaching the original patch by Niklas.

wroot
September 16, 2019, 6:33 PM

Actually it seems that at some point during 2.9.0 implementation it was done. Although i would put the old and current history divider in the one on one chat above the current date stamp. Also, still need to check if this works ok with offline messages. As offline message first appears with server's time stamp, which can be yesterday. But after reopening a window it will show up as received today.

Fixed

Assignee

Unassigned

Reporter

Daniel Henninger

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Minor
Configure