mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
Add VoiceChannel support.
This commit is contained in:
@@ -16,7 +16,8 @@ export function useUnreads({ channel, unreads, dispatcher }: UnreadProps, contex
|
||||
function checkUnread(target?: Channel) {
|
||||
if (!target) return;
|
||||
if (target._id !== channel._id) return;
|
||||
if (target?.channel_type === "SavedMessages") return;
|
||||
if (target.channel_type === "SavedMessages" ||
|
||||
target.channel_type === "VoiceChannel") return;
|
||||
|
||||
const unread = unreads[channel._id]?.last_id;
|
||||
if (target.last_message) {
|
||||
|
||||
Reference in New Issue
Block a user