Skip to content

Commit

Permalink
Merge pull request #78 from deltachat/notification-flow
Browse files Browse the repository at this point in the history
add basic notification flow
  • Loading branch information
r10s authored Dec 12, 2024
2 parents 3f1fa92 + fbb189a commit 52ed5ae
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions notification-flow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# shall a notification be shown?

```
// on incoming message / reaction / webxdc-notify ...
if notifications_granted_by_system:
if not profile_muted:
if not chat_muted:
DO_NOTIFY()
else:
if is_webxdc_notify || is_reaction_to_own_message || is_reply_to_own_message:
if is_multiuser_chat
if mentions_enabled:
DO_NOTIFY()
// in all other cases: do not notify
// in case the chat/app being notified is in scope, depending on UI, notification may be skipped
```

0 comments on commit 52ed5ae

Please sign in to comment.