Show copy callback data only if it's a callback button (#302)
This commit is contained in:
parent
3297441898
commit
8da2234dbb
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue