Browse Source

Merge pull request #3181

PKEv (1):
      fix(genericchatform):separate messages from different days
pull/3214/head
sudden6 9 years ago
parent
commit
c7d733540a
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 3
      src/widget/form/genericchatform.cpp

3
src/widget/form/genericchatform.cpp

@ -315,6 +315,9 @@ ChatMessage::Ptr GenericChatForm::addMessage(const ToxId& author, const QString @@ -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…
Cancel
Save