Add from_message_id check.

GitOrigin-RevId: a69132dc605d89698be2a8fd98f400019ecaf442
This commit is contained in:
levlam 2019-06-20 16:57:12 +03:00
parent c5eace2057
commit 3f77a39a33

View File

@ -18932,6 +18932,9 @@ vector<Notification> MessagesManager::get_message_notifications_from_database_fo
auto from_notification_id = NotificationId::max();
auto from_message_id = MessageId::max();
vector<Notification> res;
if (!from_mentions && from_message_id.get() <= d->last_read_inbox_message_id.get()) {
return res;
}
while (true) {
auto result = do_get_message_notifications_from_database_force(d, from_mentions, from_notification_id,
from_message_id, limit);