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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user