Show copy callback data only if it's a callback button (#302)

This commit is contained in:
blank X 2022-01-27 04:21:19 +00:00 committed by GitHub
parent 3297441898
commit 8da2234dbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -412,7 +412,9 @@ QString ReplyMarkupClickHandler::copyToClipboardContextItemText() const {
return button
? ((button->type == Type::Url || button->type == Type::Auth)
? tr::lng_context_copy_link(tr::now)
: ktr("ktg_copy_btn_callback"))
: (button->type == Type::Callback || button->type == Type::CallbackWithPassword)
? ktr("ktg_copy_btn_callback")
: QString())
: QString();
}