Fix get_dialog_message_by_date.

GitOrigin-RevId: efb19a9b3f174f45da9296615d270de2e384f31b
This commit is contained in:
levlam 2019-02-20 05:44:54 +03:00
parent 16d7278db9
commit 026863bf09
2 changed files with 5 additions and 1 deletions

View File

@ -833,6 +833,10 @@ class MessagesDbImpl : public MessagesDbSyncInterface {
LogEventParser message_date_parser(message.as_slice());
int32 flags;
td::parse(flags, message_date_parser);
int32 flags2 = 0;
if ((flags & (1 << 29)) != 0) {
td::parse(flags2, message_date_parser);
}
bool has_sender = (flags >> 10) & 1;
MessageId message_id;
td::parse(message_id, message_date_parser);

View File

@ -3765,7 +3765,7 @@ void MessagesManager::Dialog::store(StorerT &storer) const {
STORE_FLAG(has_pinned_message_notification);
STORE_FLAG(has_pinned_message_id);
STORE_FLAG(is_pinned_message_id_inited); // 28
//STORE_FLAG(has_flags2);
//STORE_FLAG(has_flags2); // keep dialog_id at offset 4
END_STORE_FLAGS();
store(dialog_id, storer); // must be stored at offset 4