feat: Add notifications

This commit is contained in:
2026-03-30 04:32:24 +02:00
parent b7d4bf20e3
commit 42ac712571
32 changed files with 1974 additions and 14 deletions

View File

@@ -87,7 +87,13 @@
(click)="$event.stopPropagation()"
/>
} @else {
<span class="truncate">{{ ch.name }}</span>
<span class="flex-1 truncate">{{ ch.name }}</span>
}
@if (channelUnreadCount(ch.id) > 0) {
<span class="ml-auto rounded-full bg-primary/15 px-1.5 py-0.5 text-[10px] font-semibold text-primary">
{{ formatUnreadCount(channelUnreadCount(ch.id)) }}
</span>
}
</button>
}
@@ -407,6 +413,14 @@
>
Resync Messages
</button>
@if (contextChannel()?.type === 'text') {
<button
(click)="toggleChannelNotifications()"
class="context-menu-item"
>
{{ isContextChannelMuted() ? 'Unmute Notifications' : 'Mute Notifications' }}
</button>
}
@if (canManageChannels()) {
<div class="context-menu-divider"></div>
<button