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

Correctly fix notif spam after logout/login #227

Merged
merged 4 commits into from
Mar 17, 2016
Merged

Conversation

ara4n
Copy link
Member

@ara4n ara4n commented Mar 17, 2016

Fixes element-hq/element-web#809
needs to be landed in sync with element-hq/element-web#1180

if (state === "PREPARED" || state === "SYNCING") {
this.isPrepared = true;
}
else if (state === "STOPPED" || state === "ERROR") {
Copy link
Member

Choose a reason for hiding this comment

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

I think this will also change the behaviour so that it displays notifications for all messages it gets when the stream reconnects, eg. after you wake a laptop up from sleep. Is this desired?

Copy link
Member Author

Choose a reason for hiding this comment

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

ah, true. let's not do that - good catch

@dbkr dbkr assigned ara4n and unassigned dbkr Mar 17, 2016
@ara4n
Copy link
Member Author

ara4n commented Mar 17, 2016

@dbkr PTAL

@dbkr
Copy link
Member

dbkr commented Mar 17, 2016

lgtm

@dbkr dbkr assigned ara4n and unassigned dbkr Mar 17, 2016
ara4n added a commit that referenced this pull request Mar 17, 2016
Correctly fix notif spam after logout/login
@ara4n ara4n merged commit 9dcdf0a into develop Mar 17, 2016
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