From 31049cd4d551386cae8f735f3f6202f0831562d8 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Mon, 27 Jul 2020 13:06:03 +0300 Subject: [PATCH] Call AdminTest() right after connecting --- user.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/user.go b/user.go index 72a2721..b4e8c0d 100644 --- a/user.go +++ b/user.go @@ -454,6 +454,13 @@ func (user *User) intPostLogin() { user.createCommunity() user.tryAutomaticDoublePuppeting() + err := user.Conn.AdminTest() + if err != nil { + user.sendMarkdownBridgeAlert("Post-connection ping failed: %v", err) + } else { + user.log.Debugln("Post-login ping OK") + } + select { case <-user.chatListReceived: user.log.Debugln("Chat list receive confirmation received in PostLogin")