mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
fix autojoin threads
This commit is contained in:
parent
71cc3176f6
commit
72893e7f7d
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ export const AutoJoinThreadSyncEvt = utilityEvt({
|
||||||
|
|
||||||
async listener(meta) {
|
async listener(meta) {
|
||||||
const config = meta.pluginData.config.get();
|
const config = meta.pluginData.config.get();
|
||||||
if (config.autojoin_threads) return;
|
if (!config.autojoin_threads) return;
|
||||||
for (const thread of meta.args.threads.values()) {
|
for (const thread of meta.args.threads.values()) {
|
||||||
if (!thread.joined && thread.joinable) {
|
if (!thread.joined && thread.joinable) {
|
||||||
await thread.join();
|
await thread.join();
|
||||||
|
|
Loading…
Add table
Reference in a new issue