SHA256
Обновить UI-кнопки и прокрутку
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { renderHeader } from '../components/header.js';
|
||||
import { attachScrollToBottomButton } from '../components/scroll-to-bottom-button.js';
|
||||
import { directMessages } from '../mock-data.js';
|
||||
import {
|
||||
addAppLogEntry,
|
||||
@@ -907,10 +906,6 @@ export function render({ navigate, route, chrome }) {
|
||||
|
||||
const wrap = document.createElement('div');
|
||||
wrap.className = 'chat-wrap dm-chat-wrap';
|
||||
const scrollToBottomControl = attachScrollToBottomButton({
|
||||
scrollContainer: () => boundScrollContainer || wrap,
|
||||
});
|
||||
|
||||
const historyLoader = document.createElement('div');
|
||||
historyLoader.className = 'dm-history-loader';
|
||||
historyLoader.hidden = true;
|
||||
@@ -1563,7 +1558,6 @@ export function render({ navigate, route, chrome }) {
|
||||
void loadHistoryPage({ preserveScroll: true });
|
||||
});
|
||||
screen.cleanup = () => {
|
||||
scrollToBottomControl.cleanup();
|
||||
hideUnreadSeparator({ rerender: false });
|
||||
stopAllTwemojiAnimations();
|
||||
window.removeEventListener('shine-chat-messages-updated', handleIncomingChatRefresh);
|
||||
|
||||
Reference in New Issue
Block a user