acutally now it checks if the stream name startswith pub- or one of the topics is called rules

This commit is contained in:
كارل مبارك 2021-07-15 14:10:59 +02:00
parent e6868249a9
commit 6729723f73

View file

@ -69,10 +69,12 @@ export default {
for (let stream of streams) { for (let stream of streams) {
stream.topics = await api.zulip.getTopics(client, stream.stream_id) stream.topics = await api.zulip.getTopics(client, stream.stream_id)
} }
console.log(streams)
this.$store.commit( this.$store.commit(
"setStreams", "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() resolve()
}); });