mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-25 23:00:53 -05:00
fix: a channel open in a tab behind another is no longer marked read (#34450)
This commit is contained in:
1 file changed
+3
-3
@@ -188,12 +188,12 @@
|
||||
};
|
||||
|
||||
const initHandler = async () => {
|
||||
if (currentId) {
|
||||
if (currentId && $active) {
|
||||
updateLastReadAt(currentId);
|
||||
}
|
||||
|
||||
currentId = id;
|
||||
updateLastReadAt(id);
|
||||
if ($active) updateLastReadAt(id);
|
||||
|
||||
top = false;
|
||||
messages = null;
|
||||
@@ -410,7 +410,7 @@
|
||||
onDestroy(() => {
|
||||
stopInvitation();
|
||||
// last read at
|
||||
updateLastReadAt(id);
|
||||
if ($active) updateLastReadAt(id);
|
||||
if ($_channelId === id) _channelId.set(null);
|
||||
$socket?.off('events:channel', channelEventHandler);
|
||||
mediaQuery?.removeEventListener('change', handleMediaQuery);
|
||||
|
||||
Reference in new issue
Block a user