@banta/sdk 4.7.15 → 4.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2020/banta-sdk.mjs
CHANGED
|
@@ -9089,6 +9089,11 @@ class BantaCommentsComponent {
|
|
|
9089
9089
|
console.log(`[Banta] Thread ${this.topicID}/${message.id} is already open.`);
|
|
9090
9090
|
return this.selectedMessageThread;
|
|
9091
9091
|
}
|
|
9092
|
+
if (this.selectedMessageThread) {
|
|
9093
|
+
if (this.selectedMessageThread.close)
|
|
9094
|
+
this.selectedMessageThread.close();
|
|
9095
|
+
this.selectedMessageThread = null;
|
|
9096
|
+
}
|
|
9092
9097
|
this._selected.next(message);
|
|
9093
9098
|
console.log(`[Banta] Opening thread for ${this.topicID}/${message.id}...`);
|
|
9094
9099
|
let selectedMessageThread = await this.backend.getSourceForThread(this.topicID, message.id);
|