Call AdminTest() right after connecting

This commit is contained in:
Tulir Asokan 2020-07-27 13:06:03 +03:00
parent ded9e31315
commit 31049cd4d5

View file

@ -454,6 +454,13 @@ func (user *User) intPostLogin() {
user.createCommunity() user.createCommunity()
user.tryAutomaticDoublePuppeting() 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 { select {
case <-user.chatListReceived: case <-user.chatListReceived:
user.log.Debugln("Chat list receive confirmation received in PostLogin") user.log.Debugln("Chat list receive confirmation received in PostLogin")