From 6729723f733645b57499aeee5dc71c3750204c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=83=D8=A7=D8=B1=D9=84=20=D9=85=D8=A8=D8=A7=D8=B1=D9=83?= Date: Thu, 15 Jul 2021 14:10:59 +0200 Subject: [PATCH] acutally now it checks if the stream name startswith pub- or one of the topics is called rules --- front/src/App.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/front/src/App.vue b/front/src/App.vue index 1a6cf94..856c1c6 100644 --- a/front/src/App.vue +++ b/front/src/App.vue @@ -69,10 +69,12 @@ export default { for (let stream of streams) { stream.topics = await api.zulip.getTopics(client, stream.stream_id) } - console.log(streams) this.$store.commit( "setStreams", - streams.filter((s) => s.topics.find(t => t.name == 'rules')) + streams.filter((s) => ( + s.topics.find(t => t.name == 'rules') || + s.name.startsWith(this.pubStr) + )) ); resolve() });