Minor fixes.
GitOrigin-RevId: ce3af62ed57a0d205e6270a950fa0a243afea118
This commit is contained in:
parent
f875e0d4af
commit
d4997705e5
@ -15,6 +15,8 @@
|
||||
#include "td/telegram/td_api.hpp"
|
||||
#include "td/telegram/telegram_api.h"
|
||||
|
||||
#include "td/mtproto/crypto.h"
|
||||
|
||||
#include "td/utils/as.h"
|
||||
#include "td/utils/base64.h"
|
||||
#include "td/utils/buffer.h"
|
||||
|
@ -16,8 +16,8 @@
|
||||
#include "td/telegram/Td.h"
|
||||
#include "td/telegram/TdDb.h"
|
||||
|
||||
#include "td/mtproto/Transport.h"
|
||||
#include "td/mtproto/AuthKey.h"
|
||||
#include "td/mtproto/Transport.h"
|
||||
|
||||
#include "td/utils/as.h"
|
||||
#include "td/utils/base64.h"
|
||||
@ -152,6 +152,12 @@ void NotificationManager::start_up() {
|
||||
});
|
||||
VLOG(notifications) << "Load call_notification_group_ids_ = " << call_notification_group_ids_;
|
||||
for (auto &group_id : call_notification_group_ids_) {
|
||||
if (group_id.get() > current_notification_group_id_.get()) {
|
||||
LOG(ERROR) << "Fix current notification group id from " << current_notification_group_id_ << " to " << group_id;
|
||||
current_notification_group_id_ = group_id;
|
||||
G()->td_db()->get_binlog_pmc()->set("notification_group_id_current",
|
||||
to_string(current_notification_group_id_.get()));
|
||||
}
|
||||
available_call_notification_group_ids_.insert(group_id);
|
||||
}
|
||||
}
|
||||
|
@ -92,8 +92,9 @@ class NotificationManager : public Actor {
|
||||
void process_push_notification(string payload, Promise<Unit> &&promise);
|
||||
|
||||
static Result<int64> get_push_receiver_id(string push);
|
||||
|
||||
static Result<string> decrypt_push(int64 encryption_key_id, string encryption_key, string push);
|
||||
static Result<string> decrypt_push_payload(int64 encryption_key_id, string encryption_key, string payload);
|
||||
|
||||
void before_get_difference();
|
||||
|
||||
void after_get_difference();
|
||||
@ -222,6 +223,8 @@ class NotificationManager : public Actor {
|
||||
|
||||
NotificationGroupId get_call_notification_group_id(DialogId dialog_id);
|
||||
|
||||
static Result<string> decrypt_push_payload(int64 encryption_key_id, string encryption_key, string payload);
|
||||
|
||||
void after_get_difference_impl();
|
||||
|
||||
void after_get_chat_difference_impl(NotificationGroupId group_id);
|
||||
|
Loading…
Reference in New Issue
Block a user