Fix get_dialog_message_by_date.
GitOrigin-RevId: efb19a9b3f174f45da9296615d270de2e384f31b
This commit is contained in:
parent
16d7278db9
commit
026863bf09
@ -833,6 +833,10 @@ class MessagesDbImpl : public MessagesDbSyncInterface {
|
|||||||
LogEventParser message_date_parser(message.as_slice());
|
LogEventParser message_date_parser(message.as_slice());
|
||||||
int32 flags;
|
int32 flags;
|
||||||
td::parse(flags, message_date_parser);
|
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;
|
bool has_sender = (flags >> 10) & 1;
|
||||||
MessageId message_id;
|
MessageId message_id;
|
||||||
td::parse(message_id, message_date_parser);
|
td::parse(message_id, message_date_parser);
|
||||||
|
@ -3765,7 +3765,7 @@ void MessagesManager::Dialog::store(StorerT &storer) const {
|
|||||||
STORE_FLAG(has_pinned_message_notification);
|
STORE_FLAG(has_pinned_message_notification);
|
||||||
STORE_FLAG(has_pinned_message_id);
|
STORE_FLAG(has_pinned_message_id);
|
||||||
STORE_FLAG(is_pinned_message_id_inited); // 28
|
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();
|
END_STORE_FLAGS();
|
||||||
|
|
||||||
store(dialog_id, storer); // must be stored at offset 4
|
store(dialog_id, storer); // must be stored at offset 4
|
||||||
|
Loading…
Reference in New Issue
Block a user