mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #3181
PKEv (1): fix(genericchatform):separate messages from different days
This commit is contained in:
commit
c7d733540a
|
@ -315,6 +315,9 @@ ChatMessage::Ptr GenericChatForm::addMessage(const ToxId& author, const QString
|
|||
bool authorIsActiveProfile = author.isSelf();
|
||||
QString authorStr = authorIsActiveProfile ? Core::getInstance()->getUsername() : resolveToxId(author);
|
||||
|
||||
if (getLatestDate() != QDate::currentDate())
|
||||
addSystemInfoMessage(QDate::currentDate().toString(Settings::getInstance().getDateFormat()), ChatMessage::INFO, QDateTime());
|
||||
|
||||
ChatMessage::Ptr msg;
|
||||
if (isAction)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user