mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-23 03:25:07 +03:00
Fix DMs displaying
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { clearAlerts } from "./auth/auth";
|
||||
import { loadMessages } from "./chat/chat";
|
||||
import { publicChatPanel } from "./chat/chat";
|
||||
import { id } from "./utils/utils";
|
||||
|
||||
const loginForm = id("login-form");
|
||||
@@ -36,14 +36,7 @@ export function showChat(): void {
|
||||
loginForm.style.display = 'none';
|
||||
registerForm.style.display = 'none';
|
||||
chatInterface.style.display = 'block';
|
||||
loadMessages();
|
||||
titleBar.classList.remove("color-surface");
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the chat interface and initializes messaging.
|
||||
*/
|
||||
export function loadChat(): void {
|
||||
showChat();
|
||||
loadMessages();
|
||||
publicChatPanel.activate();
|
||||
}
|
||||
Reference in New Issue
Block a user