mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
@@ -464,8 +464,11 @@ QString HistoryService::inDialogsText(DrawInDialog way) const {
|
||||
}
|
||||
|
||||
QString HistoryService::inReplyText() const {
|
||||
QString result = HistoryService::notificationText();
|
||||
return result.trimmed().startsWith(author()->name) ? result.trimmed().mid(author()->name.size()).trimmed() : result;
|
||||
const auto result = HistoryService::notificationText();
|
||||
const auto text = result.trimmed().startsWith(author()->name)
|
||||
? result.trimmed().mid(author()->name.size()).trimmed()
|
||||
: result;
|
||||
return textcmdLink(1, text);
|
||||
}
|
||||
|
||||
std::unique_ptr<HistoryView::Element> HistoryService::createView(
|
||||
|
Reference in New Issue
Block a user