Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Don't show 'connection lost' bar on MAU error #2110

Merged
merged 1 commit into from
Aug 6, 2018

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Aug 3, 2018

We don't need both warning bars

Requires matrix-org/matrix-js-sdk#680
For element-hq/element-web#7091

@dbkr dbkr requested a review from a team August 3, 2018 17:04
@dbkr
Copy link
Member Author

dbkr commented Aug 3, 2018

Tests failing because I failed to give the branches matching names

this.state.syncStateData.error &&
this.state.syncStateData.error.errcode === 'M_MAU_LIMIT_EXCEEDED'
);
return this.state.syncState === "ERROR" && !errorIsMauError;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this return true in case of a consent error? I presume on connection error there is no actual error object in the syncStateData? Maybe just check for that?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The consent error is only for sending messages rather than syncing (we're only worried about the user putting data into the system rather than getting it out). The reason for specifying that it's a MAU error is to avoid the situation where we add another failure with a dedicated errcode and an older Riot that doesn't understand that errcode displays no error at all.

@bwindels bwindels merged commit eb47abc into develop Aug 6, 2018
@bwindels bwindels deleted the dbkr/no_connection_lost_on_mau_bar branch August 6, 2018 14:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants