Add basic notification priority filtering.

This commit is contained in:
2018-12-23 21:17:03 -08:00
parent e762864b45
commit 70d6eba427
4 changed files with 36 additions and 18 deletions

View File

@@ -284,7 +284,7 @@ updateSyncResponse model r notify =
notification sr = findFirstBy
(\(s, e) -> e.originServerTs)
(\(s, e) -> e.sender /= model.loginUsername)
<| notificationEvents sr
<| joinedRoomNotificationEvents sr
notificationCmd sr = if notify
then Maybe.withDefault Cmd.none
<| Maybe.map (\(s, e) -> sendNotificationPort