2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Added support of non-self users to UsernamesBox.

This commit is contained in:
23rd
2023-04-09 23:25:18 +03:00
committed by John Preston
parent c53b26dec8
commit cfc8820bad
4 changed files with 45 additions and 25 deletions

View File

@@ -209,7 +209,7 @@ void Cover::initViewers() {
_username->overrideLinkClickHandler([=] {
const auto username = _user->userName();
if (username.isEmpty()) {
_controller->show(Box(UsernamesBox, &_user->session()));
_controller->show(Box(UsernamesBox, _user));
} else {
QGuiApplication::clipboard()->setText(
_user->session().createInternalLinkFull(username));