2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 15:45:12 +00:00

Implement collectible username / phone info boxes.

This commit is contained in:
John Preston
2024-04-02 15:35:53 +04:00
parent 22f504ca21
commit 1061fb6c85
40 changed files with 630 additions and 75 deletions

View File

@@ -1087,7 +1087,7 @@ void InnerWidget::paintPeerSearchResult(
QRect tr(context.st->textLeft, context.st->textTop, namewidth, st::dialogsTextFont->height);
p.setFont(st::dialogsTextFont);
QString username = peer->userName();
QString username = peer->username();
if (!context.active && username.startsWith(_peerSearchQuery, Qt::CaseInsensitive)) {
auto first = '@' + username.mid(0, _peerSearchQuery.size());
auto second = username.mid(_peerSearchQuery.size());
@@ -4021,7 +4021,7 @@ void InnerWidget::setupShortcuts() {
const auto history = thread->owningHistory();
const auto isArchived = history->folder()
&& (history->folder()->id() == Data::Folder::kId);
Window::ToggleHistoryArchived(
_controller->uiShow(),
history,