Fix formatting.
GitOrigin-RevId: 9d7abcae840a94912b8c0316c37a2553a38fa864
This commit is contained in:
parent
6674359694
commit
eea23e4255
@ -12249,8 +12249,9 @@ void MessagesManager::on_get_dialogs(FolderId folder_id, vector<tl_object_ptr<te
|
|||||||
read_inbox_max_message_id == d->last_read_inbox_message_id.get_prev_server_message_id()) {
|
read_inbox_max_message_id == d->last_read_inbox_message_id.get_prev_server_message_id()) {
|
||||||
read_inbox_max_message_id = d->last_read_inbox_message_id;
|
read_inbox_max_message_id = d->last_read_inbox_message_id;
|
||||||
}
|
}
|
||||||
if (d->need_repair_server_unread_count && (d->last_read_inbox_message_id <= read_inbox_max_message_id ||
|
if (d->need_repair_server_unread_count &&
|
||||||
d->order == DEFAULT_ORDER || !have_input_peer(dialog_id, AccessRights::Read))) {
|
(d->last_read_inbox_message_id <= read_inbox_max_message_id || d->order == DEFAULT_ORDER ||
|
||||||
|
!have_input_peer(dialog_id, AccessRights::Read))) {
|
||||||
LOG(INFO) << "Repaired server unread count in " << dialog_id << " from " << d->last_read_inbox_message_id << "/"
|
LOG(INFO) << "Repaired server unread count in " << dialog_id << " from " << d->last_read_inbox_message_id << "/"
|
||||||
<< d->server_unread_count << " to " << read_inbox_max_message_id << "/" << dialog->unread_count_;
|
<< d->server_unread_count << " to " << read_inbox_max_message_id << "/" << dialog->unread_count_;
|
||||||
d->need_repair_server_unread_count = false;
|
d->need_repair_server_unread_count = false;
|
||||||
|
@ -665,8 +665,8 @@ class GetStickerSetQuery : public Td::ResultHandler {
|
|||||||
class ReloadAnimatedEmojiStickerSetQuery : public Td::ResultHandler {
|
class ReloadAnimatedEmojiStickerSetQuery : public Td::ResultHandler {
|
||||||
public:
|
public:
|
||||||
void send() {
|
void send() {
|
||||||
send_query(G()->net_query_creator().create(telegram_api::messages_getStickerSet(
|
send_query(G()->net_query_creator().create(
|
||||||
telegram_api::make_object<telegram_api::inputStickerSetAnimatedEmoji>())));
|
telegram_api::messages_getStickerSet(telegram_api::make_object<telegram_api::inputStickerSetAnimatedEmoji>())));
|
||||||
}
|
}
|
||||||
|
|
||||||
void on_result(uint64 id, BufferSlice packet) override {
|
void on_result(uint64 id, BufferSlice packet) override {
|
||||||
|
Loading…
Reference in New Issue
Block a user