Changeset 0.26.0 (#165)
This commit is contained in:
@@ -525,11 +525,13 @@ const UI = {
|
||||
|
||||
// Chats section shows only direct/group chats not in a project.
|
||||
// type='channel' and type='dm' belong to the Channels section (App.channels).
|
||||
// type='workflow' belongs to the Queue section (WorkflowQueue).
|
||||
// Project chats rendered by renderProjectsSection.
|
||||
let chats = (App.chats || []).filter(c =>
|
||||
!c.projectId &&
|
||||
c.type !== 'channel' &&
|
||||
c.type !== 'dm'
|
||||
c.type !== 'dm' &&
|
||||
c.type !== 'workflow'
|
||||
);
|
||||
if (query) chats = chats.filter(c => (c.title || '').toLowerCase().includes(query));
|
||||
|
||||
@@ -625,6 +627,9 @@ const UI = {
|
||||
|
||||
// Always keep projects section in sync
|
||||
this.renderProjectsSection();
|
||||
|
||||
// Refresh workflow queue section (workflow channels filtered out of chat list)
|
||||
if (typeof WorkflowQueue !== 'undefined') WorkflowQueue.refresh();
|
||||
},
|
||||
|
||||
toggleFolder(folderId) {
|
||||
|
||||
Reference in New Issue
Block a user