Skip to content

Commit 2447d74

Browse files
committed
Remove duplicate appending of the list
1 parent 84f969f commit 2447d74

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/components/forumTab/botforumTab.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export class BotforumTab extends ForumTab {
4343
sortedList.addPinned(this.peerId);
4444

4545
const list = autonomousList.sortedList.list;
46-
this.scrollable.append(list);
4746
autonomousList.bindScrollable();
4847

4948
this.xd = autonomousList;

src/components/forumTab/monoforumTab.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,12 @@ export class MonoforumTab extends ForumTab {
3535
sortedList.addPinned(this.peerId);
3636

3737
const list = autonomousList.sortedList.list;
38-
this.scrollable.append(list);
39-
autonomousList.bindScrollable();
4038

4139
this.xd = autonomousList;
4240

4341
appDialogsManager.setListClickListener({list, onFound: null, withContext: true});
4442
this.scrollable.append(list);
43+
autonomousList.bindScrollable();
4544

4645

4746
this.listenerSetter.add(rootScope)('dialog_drop', (dialog) => {

0 commit comments

Comments
 (0)