2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Replaced UsernameBox with generic box.

This commit is contained in:
23rd
2022-10-11 21:10:15 +03:00
committed by John Preston
parent 4f4d0bef25
commit acbc248f23
4 changed files with 110 additions and 174 deletions

View File

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