diff --git a/Telegram/SourceFiles/history/history_item.cpp b/Telegram/SourceFiles/history/history_item.cpp index 5d275fd74..03b78484b 100644 --- a/Telegram/SourceFiles/history/history_item.cpp +++ b/Telegram/SourceFiles/history/history_item.cpp @@ -1163,14 +1163,16 @@ void HistoryItem::setServiceText(PreparedServiceText &&prepared) { auto text = std::move(prepared.text); const auto settings = &AyuSettings::getInstance(); - const auto timeString = QString(" (%1)").arg(QLocale().toString( - base::unixtime::parse(_date), - settings->showMessageSeconds - ? QLocale::system().timeFormat(QLocale::LongFormat).remove(" t") - : QLocale::system().timeFormat(QLocale::ShortFormat) - )); - if (!text.text.isEmpty() && !text.text.contains(timeString)) { - text = text.append(timeString); + if (date() > 0) { + const auto timeString = QString(" (%1)").arg(QLocale().toString( + base::unixtime::parse(_date), + settings->showMessageSeconds + ? QLocale::system().timeFormat(QLocale::LongFormat).remove(" t") + : QLocale::system().timeFormat(QLocale::ShortFormat) + )); + if (!text.text.isEmpty() && !text.text.contains(timeString)) { + text = text.append(timeString); + } } AddComponents(HistoryServiceData::Bit());