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

Add emoji-status disclaimer for unknown peers.

This commit is contained in:
John Preston
2022-09-06 11:20:55 +04:00
parent 400d4b793a
commit f0955f2021
15 changed files with 223 additions and 66 deletions

View File

@@ -192,7 +192,7 @@ void Cover::initViewers() {
refreshUsernameGeometry(width());
}, lifetime());
_username->setClickHandlerFilter([=](auto&&...) {
_username->overrideLinkClickHandler([=] {
const auto username = _user->userName();
if (username.isEmpty()) {
_controller->show(Box<UsernameBox>(&_user->session()));
@@ -203,7 +203,6 @@ void Cover::initViewers() {
Window::Show(_controller).toastParent(),
tr::lng_username_copied(tr::now));
}
return false;
});
}