Fix chatlist reorder when unpinning old dialog
This commit is contained in:
parent
acf836d078
commit
43cf1baa8a
@ -915,6 +915,12 @@ export class AppDialogsManager {
|
||||
}
|
||||
|
||||
const needIndex = index - offset;
|
||||
if(needIndex > currentOrder.length) {
|
||||
dom.listEl.remove();
|
||||
delete this.doms[dialog.peerID];
|
||||
return;
|
||||
}
|
||||
|
||||
const peerIDByIndex = currentOrder[needIndex];
|
||||
|
||||
if(peerIDByIndex != dialog.peerID) {
|
||||
|
Loading…
Reference in New Issue
Block a user