Add button to mark chat read on chat-bottom-bar; make icon-btn icon color change to ensure visibility with hover effects; make waha show in-app notification for errors.
This commit is contained in:
parent
418f858807
commit
932e63e299
7 changed files with 38 additions and 3 deletions
|
|
@ -3,7 +3,7 @@ import { waha } from "./waha.js";
|
|||
import { ui, elements } from "./ui.js";
|
||||
import { websocket } from "./websocket.js";
|
||||
import { compensateMessageOrdering, debounce, formatTime, normalizeId } from "./utils.js";
|
||||
import { fetchChats, getAppUser, getChatMessages, getChatPicture, getChats, getUser, getUserAbout, sendStatus, updateOnlineStatus } from "./storage.js";
|
||||
import { fetchChats, getAppUser, getChatMessages, getChatPicture, getChats, getUser, getUserAbout, markRead, sendStatus, updateOnlineStatus } from "./storage.js";
|
||||
import { upsertMessages } from "./db.js";
|
||||
import { showNotification } from "./notification.js";
|
||||
|
||||
|
|
@ -181,6 +181,9 @@ function setupEventListeners() {
|
|||
if (e.target == e.currentTarget) ui.toggleChatBottomBar();
|
||||
});
|
||||
|
||||
elements.markreadBtn.addEventListener('click', () => {
|
||||
markRead(activeChatState.id);
|
||||
})
|
||||
elements.attachmentBtn.addEventListener('click', () => {
|
||||
elements.attachmentInput.click();
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue