Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix: hide current date at the top of the chat
Browse files Browse the repository at this point in the history
  • Loading branch information
TriKriSta authored and anthonybilinski committed Sep 16, 2019
1 parent 31f1c74 commit bbbbc6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/form/genericchatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ void GenericChatForm::updateShowDateInfo(const ChatLine::Ptr& line)
{
const auto date = getTime(line);

if (date.isValid() && date != QDateTime::currentDateTime()) {
if (date.isValid() && date.date() != QDate::currentDate()) {
const auto dateText = QStringLiteral("<b>%1<\b>").arg(date.toString(Settings::getInstance().getDateFormat()));
dateInfo->setText(dateText);
dateInfo->setVisible(true);
Expand Down

0 comments on commit bbbbc6a

Please sign in to comment.