mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-16 18:33:49 +01:00
Call AdminTest() right after connecting
This commit is contained in:
parent
ded9e31315
commit
31049cd4d5
1 changed files with 7 additions and 0 deletions
7
user.go
7
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")
|
||||
|
|
Loading…
Reference in a new issue