mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Closed beta 10020002: Use default color theme link in Settings.
This commit is contained in:
@@ -94,7 +94,17 @@ void activateBotCommand(const HistoryItem *msg, int row, int col) {
|
||||
|
||||
case ButtonType::Url: {
|
||||
auto url = QString::fromUtf8(button->data);
|
||||
HiddenUrlClickHandler(url).onClick(Qt::LeftButton);
|
||||
auto skipConfirmation = false;
|
||||
if (auto bot = msg->getMessageBot()) {
|
||||
if (bot->isVerified()) {
|
||||
skipConfirmation = true;
|
||||
}
|
||||
}
|
||||
if (skipConfirmation) {
|
||||
UrlClickHandler::doOpen(url);
|
||||
} else {
|
||||
HiddenUrlClickHandler::doOpen(url);
|
||||
}
|
||||
} break;
|
||||
|
||||
case ButtonType::RequestLocation: {
|
||||
@@ -539,9 +549,13 @@ void start() {
|
||||
}
|
||||
}
|
||||
|
||||
bool started() {
|
||||
return (SandboxData != nullptr);
|
||||
}
|
||||
|
||||
void finish() {
|
||||
delete SandboxData;
|
||||
SandboxData = 0;
|
||||
SandboxData = nullptr;
|
||||
}
|
||||
|
||||
uint64 UserTag() {
|
||||
|
Reference in New Issue
Block a user