-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter out global team conversations for API v1 and v2. #2875
Conversation
createGroup alice1 gid | ||
void $ createAddCommit alice1 [] >>= sendAndConsumeCommitBundle | ||
|
||
-- Now we should have the user as part of that conversation also in the backend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this comment should read differently, I think. The GTC is not listed for that user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other way around, it should list for this user, since we're calling the right version of the API, no?
431635d
to
348573b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't look right to me. Since the normal listing function is not seeing the GTC, we can simply add it manually at the beginning (or the end) of the list we return, without the need for any special tricks.
E.getUserTeams (tUnqualified lusr) >>= mapM (pure . Data.globalTeamConv) | ||
|
||
-- implicitly add user to the global team conv, so it gets listed. | ||
for_ gtcIds $ \tid -> E.createMembers tid (UserList [tUnqualified lusr] mempty) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the idea was that the GTC never has any explicit members.
Builds upon #2872
Checklist
changelog.d