connector/client: check for client context nil on logged in check
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
@@ -655,7 +655,7 @@ func (t *TelegramClient) getUserInfoFromTelegramUser(ctx context.Context, u tg.U
|
||||
}
|
||||
|
||||
func (t *TelegramClient) IsLoggedIn() bool {
|
||||
if t == nil {
|
||||
if t == nil || t.clientCtx == nil {
|
||||
return false
|
||||
}
|
||||
select {
|
||||
|
||||
Reference in New Issue
Block a user