fix: don't show community id 0 in chats ui

This commit is contained in:
trisua 2025-04-27 23:46:12 -04:00
parent 81e44d402c
commit 25d2d25fbc

View file

@ -31,7 +31,7 @@
{{ icon "message-circle" }} {{ icon "message-circle" }}
</a> </a>
{% for community in communities %} {% for community in communities %} {% if community.id != 0 %}
<a <a
href="/chats/{{ community.id }}/0" href="/chats/{{ community.id }}/0"
class="button quaternary channel_icon {% if selected_community == community.id %}selected{% endif %}" class="button quaternary channel_icon {% if selected_community == community.id %}selected{% endif %}"
@ -39,7 +39,7 @@
{{ components::community_avatar(id=community.id, {{ components::community_avatar(id=community.id,
community=community, size="48px") }} community=community, size="48px") }}
</a> </a>
{% endfor %} {% endif %} {% endfor %}
</div> </div>
<div class="sidebar flex flex-col gap-2" id="channels_list"> <div class="sidebar flex flex-col gap-2" id="channels_list">