From e2f89ec27ee79ef51c271f40d3fdaf42496d066a Mon Sep 17 00:00:00 2001
From: George Hazan <george.hazan@gmail.com>
Date: Wed, 7 Jun 2023 20:17:14 +0300
Subject: =?UTF-8?q?fixes=20#3417=20(Telegram:=20=D0=BF=D1=80=D0=B8=20?=
 =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8=D0=B8=20=D1=83=D1=87?=
 =?UTF-8?q?=D1=91=D1=82=D0=BD=D0=BE=D0=B9=20=D0=B7=D0=B0=D0=BF=D0=B8=D1=81?=
 =?UTF-8?q?=D0=B8=20=D1=81=D0=B5=D1=81=D1=81=D0=B8=D1=8F=20=D0=BD=D0=B5=20?=
 =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D1=8F=D0=B5=D1=82=D1=81=D1=8F)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 protocols/Telegram/src/server.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'protocols/Telegram/src/server.cpp')

diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp
index c8eba7f5ae..d40b6dc82f 100644
--- a/protocols/Telegram/src/server.cpp
+++ b/protocols/Telegram/src/server.cpp
@@ -1,4 +1,4 @@
-/*
+-/*
 Copyright (C) 2012-23 Miranda NG team (https://miranda-ng.org)
 
 This program is free software; you can redistribute it and/or
@@ -74,6 +74,7 @@ void CTelegramProto::OnLoggedIn()
 	}
 	else {
 		m_impl.m_keepAlive.Start(1000);
+		setByte(DBKEY_AUTHORIZED, 1);
 
 		SendQuery(new TD::getChats(td::tl::unique_ptr<TD::chatListMain>(), 1000));
 	}
-- 
cgit v1.2.3