Don't send dice / dart to channels.

Fixes #7703.
This commit is contained in:
John Preston 2020-05-01 14:35:20 +04:00
parent d8e55081b0
commit cc463b07b1
1 changed files with 18 additions and 16 deletions

View File

@ -42,6 +42,7 @@ namespace {
.durationMs = Ui::Toast::kDefaultDuration * 2, .durationMs = Ui::Toast::kDefaultDuration * 2,
.multiline = true, .multiline = true,
}; };
if (history->peer->canWrite()) {
auto link = Ui::Text::Link( auto link = Ui::Text::Link(
tr::lng_about_random_send(tr::now).toUpper()); tr::lng_about_random_send(tr::now).toUpper());
link.entities.push_back( link.entities.push_back(
@ -58,6 +59,7 @@ namespace {
} }
return false; return false;
}); });
}
Ui::Toast::Show(config); Ui::Toast::Show(config);
}); });
} }