fix: update empty state message when no channel is selected

This commit is contained in:
Sarto
2026-05-04 13:33:22 +03:30
parent 4f59ec8270
commit afe285b55b
+2 -1
View File
@@ -4542,7 +4542,8 @@
await loadChannels();
if (wasEmpty && channels.length > 0 && selectedChannel === 0) {
closeProfiles();
await selectChannel(1); return
document.getElementById('messages').innerHTML = '<div class="empty-state"><p>' + (t('select_channel_hint') || '') + '</p></div>';
return;
}
if (data && typeof data === 'object' && data.type === 'no_changes') {
// Only show the toast if the user explicitly asked for this