view libervia/web/pages/chat/select/_browser/__init__.py @ 1584:eab815e48795

browser (chat): message edition + extra menu: - handle extra menu - implement `quote` action - last message correction - show popup with last editions history when "editer" pencil icon is hovered - up arrow let quickly edit last message - implement input modes, `normal` being the default, `edit` or `quote` are new ones. - [ESC] erase input and returns to `normal` mode - fix size and set focus on message input when page is loaded - fix identity retrieval on new messages
author Goffi <goffi@goffi.org>
date Tue, 28 Nov 2023 17:59:11 +0100
parents 66aa6e140ebb
children c6976c5b85a1
line wrap: on
line source


from bridge import AsyncBridge as Bridge
from browser import console as log, document, window
from cache import cache
from jid_search import JidSearch

log.warning = log.warn


jid_search = JidSearch(
    document["search"],
    document["chat_items"],
)