fix(threads): require being sendable to be unarchivable (#7406)

This commit is contained in:
PlavorSeol
2022-02-12 20:09:04 +09:00
committed by GitHub
parent 81d8b54ff6
commit 861f0e2134

View File

@@ -517,7 +517,7 @@ class ThreadChannel extends Channel {
* @readonly
*/
get unarchivable() {
return this.archived && (this.locked ? this.manageable : this.sendable);
return this.archived && this.sendable && (!this.locked || this.manageable);
}
/**