gram-tgcalls
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -15,6 +15,5 @@ /// <reference types="node" /> | ||
resume(chatId: number): boolean | null; | ||
stop(chatId: number): boolean | null; | ||
leave(chatId: number): Promise<boolean | null>; | ||
stop(chatId: number): Promise<boolean | null>; | ||
connected(chatId: number): boolean; | ||
finished(chatId: number): boolean | null; | ||
} |
@@ -64,16 +64,5 @@ "use strict"; | ||
} | ||
stop(chatId) { | ||
async stop(chatId) { | ||
const connection = __classPrivateFieldGet(this, _GramTGCalls_connections, "f").get(chatId); | ||
if (connection) { | ||
if (!connection.stream.finished) { | ||
connection.stream.stop(); | ||
return true; | ||
} | ||
return false; | ||
} | ||
return null; | ||
} | ||
async leave(chatId) { | ||
const connection = __classPrivateFieldGet(this, _GramTGCalls_connections, "f").get(chatId); | ||
if (connection) { | ||
const result = await calls_1.leaveCall(this.client, chatId); | ||
@@ -80,0 +69,0 @@ if (result) { |
{ | ||
"name": "gram-tgcalls", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15622
166