1
0
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:
sudden6 2016-04-25 19:26:42 +02:00
commit c7d733540a
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -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)
{