mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-22 05:11:55 +01:00
Properly sign out to remove session (#1059)
This commit is contained in:
parent
a34d7fcd22
commit
cb55bd37cc
@ -91,6 +91,7 @@ export async function init(sessionId: string, _onUpdate: OnApiUpdate) {
|
||||
}
|
||||
|
||||
export async function destroy() {
|
||||
await invokeRequest(new GramJs.auth.LogOut());
|
||||
await client.destroy();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user