acutally now it checks if the stream name startswith pub- or one of the topics is called rules
This commit is contained in:
parent
e6868249a9
commit
6729723f73
1 changed files with 4 additions and 2 deletions
|
|
@ -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()
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue