mirror of
https://github.com/zhigang1992/mtcute.git
synced 2026-01-12 17:32:35 +08:00
fix(core): clean up old edits in conversation
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user