mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +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) {
|
||||
const config = meta.pluginData.config.get();
|
||||
if (config.autojoin_threads) return;
|
||||
if (!config.autojoin_threads) return;
|
||||
for (const thread of meta.args.threads.values()) {
|
||||
if (!thread.joined && thread.joinable) {
|
||||
await thread.join();
|
||||
|
|
Loading…
Add table
Reference in a new issue