Skip to content

Commit

Permalink
Updated Version and Dynamic Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonKirill authored and github-actions[bot] committed Jan 5, 2025
1 parent 2dc6d9c commit 38d97c3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion chat_client/static/js/klatchatNano.js
Original file line number Diff line number Diff line change
Expand Up @@ -3004,7 +3004,16 @@ const setAllCountersToZero = () => {
*/
const refreshSubmindsCount = (cid) => {
const participantsCountNode = document.getElementById(`participants-count-${cid}`);
if (participantsCountNode && !isEmpty(submindsState)) participantsCountNode.innerText = submindsState["subminds_per_cid"][cid].length;
if (participantsCountNode) {
let submindsCount = 0
if (!isEmpty(submindsState)) {
submindsCount = submindsState["subminds_per_cid"][cid].filter(submind => {
const connectedSubmind = submindsState.connected_subminds[submind.submind_id];
return connectedSubmind && connectedSubmind.bot_type === "submind" && submind.status === "active";
}).length;
}
participantsCountNode.innerText = submindsCount;
}
}


Expand Down
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


__version__ = "0.4.7a29"
__version__ = "0.4.7a30"

0 comments on commit 38d97c3

Please sign in to comment.