mirror of
https://github.com/mautrix/whatsapp.git
synced 2025-03-14 14:15:38 +00:00
legacyprovision: don't delete user logins on logout
This commit is contained in:
parent
f4f7043b21
commit
25f13a3ae4
1 changed files with 2 additions and 1 deletions
|
@ -205,7 +205,8 @@ func legacyProvLogout(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
for _, login := range allLogins {
|
||||
login.Logout(r.Context())
|
||||
// Intentionally don't delete the user login, only logout remote
|
||||
login.Client.(*connector.WhatsAppClient).LogoutRemote(r.Context())
|
||||
}
|
||||
exhttp.WriteJSONResponse(w, http.StatusOK, Response{true, "Logged out successfully"})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue