Skip to content
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

Add support for muted conversations #357

Merged
merged 3 commits into from
Oct 18, 2017
Merged

Add support for muted conversations #357

merged 3 commits into from
Oct 18, 2017

Conversation

dbrgn
Copy link
Contributor

@dbrgn dbrgn commented Oct 17, 2017

If a conversation is muted, don't trigger notifications on new messages.

Additionally, indicate muted conversations in the conversation list:

img

img

For testing, current master of the app is required.

This PR also contains a bugfix for notifications not being triggered for new conversations.

Fixes #346.

@dbrgn dbrgn added app-update Requires an app update bug It's a bug! feature New feature! labels Oct 17, 2017
@dbrgn dbrgn requested a review from sillych October 17, 2017 13:20
Previously, the conversation was fetched and passed to `onNewMessage`
before updating it with the new data. This could lead to situations like
notifications being triggered for conversations that were muted since
the last message, since the `isMuted` check would still operate on the
old data.

Additionally, the first message of a new conversation did previously not
trigger a notification at all.
@dbrgn dbrgn force-pushed the 346-muted-notifications branch from 9bce0ec to dd37435 Compare October 17, 2017 13:25
@dbrgn dbrgn merged commit 7b6dffc into master Oct 18, 2017
@dbrgn dbrgn deleted the 346-muted-notifications branch October 18, 2017 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-update Requires an app update bug It's a bug! feature New feature!
Development

Successfully merging this pull request may close these issues.

Muted Notification
3 participants