Closed enahum closed 4 weeks ago
@enahum Is this this ticket? https://mattermost.atlassian.net/browse/MM-60723
@enahum Is this this ticket? https://mattermost.atlassian.net/browse/MM-60723
@larkox seems to be the case
It looks fine, but one question before approving.
Are we positive
o
will always contain all teams? If not, we may "lose" teams with this change.
It should contain all of them. @hmhealey can you confirm?
I don't believe we keep that preference in sync with the user's teams. If I remember right, the preference is only updated when a user reoreders their teams, so:
The web app function for handling this is here: https://github.com/mattermost/mattermost/blob/master/webapp/channels/src/utils/team_utils.tsx#L18
@enahum Did we address the case where the items in that array don't match the users' current teams? It doesn't seem like that was handled, so I don't think that the mobile app will show new teams that the user is added to now unless the user reorders their teams from the web app
@hmhealey you are saying that if:
The order preference is not updated and thus the team won't appear in the UI?
Please confirm this is the case, cause then is not handled and is also affecting other work I'm doing
@hmhealey additionally can you confirm if these newly added teams would show above or below the ones you already ordered manually.
If above that would be better I think, specially when you are in a looooooooooot of teams already.
@hmhealey you are saying that if:
1. User orders the teams 2. User is added to another team
The order preference is not updated and thus the team won't appear in the UI?
Please confirm this is the case, cause then is not handled and is also affecting other work I'm doing
I'm a bit late to reply, but yeah, that's correct.
@hmhealey additionally can you confirm if these newly added teams would show above or below the ones you already ordered manually.
The logic for that is in here. The order is:
Changes for that here https://github.com/mattermost/mattermost-mobile/pull/8306
Summary
The code to sort the teams based on the order established by the preferences wasn't working, the preferences are already sorted and if no preferences set we sort by the display name of the team.
Noticed this issue since we started to add more teams on Hub.
Ticket Link
https://mattermost.atlassian.net/browse/MM-60723
Release Note