fix(ThreadChannel): Require sendable for unarchivable (#7555)

This commit is contained in:
Jiralite
2022-03-02 09:31:51 +00:00
committed by GitHub
parent 215dfe02d5
commit 49397c0ca4

View File

@@ -487,7 +487,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);
}
/**