Fix MessageEntity::get_type_priority.

GitOrigin-RevId: 175f6e2f1f97e87309add8314321934d744b0493
This commit is contained in:
levlam 2020-08-18 11:05:10 +03:00
parent 73554fcfa5
commit 3de679b560
2 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,7 @@
namespace td {
int MessageEntity::get_type_priority(Type type) {
static const int types[] = {50, 50, 50, 50, 50, 90, 91, 20, 11, 10, 49, 49, 50, 50, 92, 93, 0};
static const int types[] = {50, 50, 50, 50, 50, 90, 91, 20, 11, 10, 49, 49, 50, 50, 92, 93, 0, 50};
return types[static_cast<int32>(type)];
}

View File

@ -28,6 +28,7 @@ class ContactsManager;
class MessageEntity {
public:
// don't forget to update get_type_priority()
enum class Type : int32 {
Mention,
Hashtag,