Fix MessageEntity::get_type_priority.
GitOrigin-RevId: 175f6e2f1f97e87309add8314321934d744b0493
This commit is contained in:
parent
73554fcfa5
commit
3de679b560
@ -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)];
|
||||
}
|
||||
|
||||
|
@ -28,6 +28,7 @@ class ContactsManager;
|
||||
|
||||
class MessageEntity {
|
||||
public:
|
||||
// don't forget to update get_type_priority()
|
||||
enum class Type : int32 {
|
||||
Mention,
|
||||
Hashtag,
|
||||
|
Loading…
Reference in New Issue
Block a user