Skip to content

Commit

Permalink
fix: authorization check for messages (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
tryon-dev authored Jan 25, 2025
2 parents 71ee3c0 + 9a412b2 commit 994993b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/account/Chat/Messages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const Discussions: Screen<"Discussions"> = ({ navigation, route }) => {

const supported = account.service === AccountService.Pronote;

const enabled = supported && account.instance?.user.resources[0].tabs.get(TabLocation.Discussions);
const enabled = supported && account.instance?.user.authorizations.tabs.includes(TabLocation.Discussions);

useLayoutEffect(() => {
navigation.setOptions({
Expand Down

0 comments on commit 994993b

Please sign in to comment.