fix(core): clean up old edits in conversation

This commit is contained in:
alina sireneva
2025-04-07 05:01:10 +03:00
parent 46a1716154
commit ab4ad108a0

View File

@@ -626,11 +626,9 @@ export class Conversation {
private _processRecentEdits() {
if (!this._recentEdits.length) return
const iter = this._recentEdits[Symbol.iterator]()
let it
while (!(it = iter.next()).done) {
this._onEditMessage(it.value, true)
while ((it = this._recentEdits.popFront())) {
this._onEditMessage(it, true)
}
}
}