From e95e8fb8c40a82a1dc8298cf07bb24940306327e Mon Sep 17 00:00:00 2001 From: or-else Date: Fri, 11 Jun 2021 09:51:44 -0700 Subject: [PATCH] don't skip 'sys' subscription --- server/db/mysql/adapter.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/db/mysql/adapter.go b/server/db/mysql/adapter.go index de499814e..d15dfe534 100644 --- a/server/db/mysql/adapter.go +++ b/server/db/mysql/adapter.go @@ -1478,8 +1478,8 @@ func (a *adapter) TopicsForUser(uid t.Uid, keepDeleted bool, opts *t.QueryOpt) ( sub.User = uid.String() tcat := t.GetTopicCat(tname) - if tcat == t.TopicCatMe || tcat == t.TopicCatFnd || tcat == t.TopicCatSys { - // One of 'me', 'fnd', 'sys' subscriptions, skip. + if tcat == t.TopicCatMe || tcat == t.TopicCatFnd { + // One of 'me', 'fnd' subscriptions, skip. Don't skip 'sys' subscription. continue } else if tcat == t.TopicCatP2P { // P2P subscription, find the other user to get user.Public @@ -1492,7 +1492,7 @@ func (a *adapter) TopicsForUser(uid t.Uid, keepDeleted bool, opts *t.QueryOpt) ( topq = append(topq, tname) } else { - // Group subscription. Maybe convert channel name to topic name. + // Group or 'sys' subscription. Maybe convert channel name to topic name. tname = t.ChnToGrp(tname) topq = append(topq, tname) }