Add support for basketball dice emoji.

GitOrigin-RevId: 14ee79e80310d468f7acbb6693b56379c76b3bd2
This commit is contained in:
levlam 2020-05-17 01:28:56 +03:00
parent 588113388d
commit 2a92f4cf6b
2 changed files with 3 additions and 3 deletions

View File

@ -663,7 +663,7 @@ class MessageDice : public MessageContent {
if (dice_value < 0) {
return false;
}
if (emoji == "DEFAULT_EMOJI" || emoji == "๐ŸŽฏ") {
if (emoji == DEFAULT_EMOJI || emoji == "๐ŸŽฏ") {
return dice_value <= 6;
}
return dice_value <= 1000;

View File

@ -3401,7 +3401,7 @@ void StickersManager::on_update_dice_emojis() {
return;
}
auto dice_emojis_str = G()->shared_config().get_option_string("dice_emojis", "๐ŸŽฒ\x01๐ŸŽฏ");
auto dice_emojis_str = G()->shared_config().get_option_string("dice_emojis", "๐ŸŽฒ\x01๐ŸŽฏ\x01๐Ÿ€");
if (dice_emojis_str == dice_emojis_str_) {
return;
}
@ -3430,7 +3430,7 @@ void StickersManager::on_update_dice_success_values() {
return;
}
auto dice_success_values_str = G()->shared_config().get_option_string("dice_success_values", "0,0");
auto dice_success_values_str = G()->shared_config().get_option_string("dice_success_values", "0,0,0");
if (dice_success_values_str == dice_success_values_str_) {
return;
}