2
0
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:
John Preston
2016-12-20 16:03:51 +03:00
parent 0480e02b23
commit 177078b0af
70 changed files with 788 additions and 419 deletions

View File

@@ -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() {