Commit Graph

2428 Commits

Author SHA1 Message Date
bjoern 20f488807e Update src/org/thoughtcrime/securesms/notifications/NotificationCenter.java
Co-authored-by: Hocuri <hocuri@gmx.de>
2020-05-25 13:38:56 +02:00
B. Petersen bec77fcb92 format respecting used style in the rest of the file 2020-05-25 13:38:56 +02:00
B. Petersen c66473d88a use addr instead of db-name as unique-element for multi-account, thanks @Hocuri 2020-05-25 13:38:56 +02:00
bjoern f7af21cd1f Update src/org/thoughtcrime/securesms/notifications/NotificationCenter.java
Co-authored-by: Hocuri <hocuri@gmx.de>
2020-05-25 13:38:56 +02:00
bjoern 9e9c9014c6 Update src/org/thoughtcrime/securesms/notifications/NotificationCenter.java
Co-authored-by: Hocuri <hocuri@gmx.de>
2020-05-25 13:38:56 +02:00
B. Petersen 1b814f4d86 adapt to new mute-api 2020-05-25 13:38:55 +02:00
B. Petersen 2b8b54ce10 tweak in-chat-sounds 2020-05-25 13:38:55 +02:00
B. Petersen 96114c415d respect global notification switch 2020-05-25 13:38:55 +02:00
B. Petersen bdb31e5d36 wording 2020-05-25 13:38:55 +02:00
B. Petersen 7b8776ac2e remove dependency to MessageNotifierCompat 2020-05-25 13:38:55 +02:00
B. Petersen 3595bc445d tweak notification-accessibility 2020-05-25 13:38:55 +02:00
B. Petersen b68a187c74 add inbox-style to notifications 2020-05-25 13:38:55 +02:00
B. Petersen 6b4f9772a8 add remote reply option to notification 2020-05-25 13:38:54 +02:00
B. Petersen 73f20f5288 respect privacy settings 2020-05-25 13:38:54 +02:00
B. Petersen d09c7da403 avoid a load of sounds 2020-05-25 13:38:54 +02:00
B. Petersen 3646314a13 support notification badge/dot 2020-05-25 13:38:54 +02:00
B. Petersen c79401d6b4 add avatar beside notification 2020-05-25 13:38:54 +02:00
B. Petersen 291dc06f07 open correct chat 2020-05-25 13:38:54 +02:00
B. Petersen f3cc4e9234 also group on notification-level 2020-05-25 13:38:54 +02:00
B. Petersen d592110de5 make notification-channels ready for multi-account 2020-05-25 13:38:53 +02:00
B. Petersen ddc770a9c9 delete handled notifications 2020-05-25 13:38:53 +02:00
B. Petersen f54d076e0b steamline notification-ids 2020-05-25 13:38:53 +02:00
B. Petersen 267b3c8a75 delete unused dc_msg notification channels 2020-05-25 13:38:53 +02:00
B. Petersen 6c7a17ac41 steamline notification channel names 2020-05-25 13:38:53 +02:00
B. Petersen 6865d812d0 group notifications 2020-05-25 13:38:53 +02:00
B. Petersen b46fea9529 rename MsgNotificationManager to NotificationCenter 2020-05-25 13:38:53 +02:00
B. Petersen 1e60eb9c1a just use defaults for led-pattern, it is no longer supported since andoid8; in-chat sounds are independent from global-notification-switch 2020-05-25 13:38:52 +02:00
B. Petersen fd4404c1e3 allow chat-specific sounds+vibrate by creating channels as needed 2020-05-25 13:38:52 +02:00
B. Petersen 0c6edfb44f just delete all unused channels 2020-05-25 13:38:52 +02:00
B. Petersen 9563000da7 set sound/vibrate/led for systems <androidO 2020-05-25 13:38:52 +02:00
B. Petersen 14289db25d make basic notifications work 2020-05-25 13:38:52 +02:00
B. Petersen 48f1693420 move in-chat sounds to InChatSounds class 2020-05-25 13:38:52 +02:00
B. Petersen 84c35c7483 replace global calls to MessageNotifierCompat with MsgNotificationManager 2020-05-25 13:38:51 +02:00
bjoern 2fe02d616e Merge pull request #1382 from deltachat/fix-ndk-make
really use the toolchain defined in the core-rust-submodule
2020-05-23 17:24:48 +02:00
bjoern 83b69bbe75 Merge pull request #1381 from deltachat/fix-markseen
fix marking incoming message as being seen
2020-05-23 16:30:58 +02:00
B. Petersen c5cc6c609b really use the toolchain defined in the core-rust-submodule 2020-05-23 16:08:31 +02:00
B. Petersen 1e34375a64 fix marking incoming message as being seen
before, messages were only maked as seen after the chat was entered
or after some scrolling takes place.

if a user was inside a chat, reading the last incoming message,
that did not sent out markseen (unless, some scrolling was done,
which, honestly, is often the case)

this commit starts the markseen-bouncer also when the chatlist is reloaded
(true eg. on incoming messages) - but this is not done when the
list is paused (eg. screen is off or some other fragment/dialog above)
2020-05-23 15:34:04 +02:00
bjoern 1fb4514781 Merge pull request #1379 from deltachat/fix-selection
fix showing selected chats
2020-05-23 13:13:05 +02:00
B. Petersen 1f3ac36edb fix showing selected chats
this bug was introduced some days ago at adce890bef
by declaring chatId as "int" instead of "long", which is formally correct,
however, int many parts of the code, the chatId is "long" -
as for the set of selected chats:
checking that set for an "int" always returns false ...

i first wanted to change all the sets to use int instead of long,
however, this would require lots of lines to be change -
keeping in mind that this seems to be very sensitive,
and use "long" for the chatId in ConversationListItem.

doing a larger refactoring of Long to Int has the potential to introduce more bugs,
things are not that intuitive in this area -
i would also not have exected that i cannot query a set of longs using an integer,
when using primitives (i know, they are converted implicitly to objects :)
2020-05-22 16:53:37 +02:00
bjoern 0723dbf9e3 Merge pull request #1376 from deltachat/fix-typo
fix typo
2020-05-22 12:04:28 +02:00
bjoern 2d9aee956e Merge pull request #1375 from deltachat/migrate-muting
Migrate muting to core functions
2020-05-22 00:08:48 +02:00
B. Petersen a2c2c6508b fix typo 2020-05-21 22:33:01 +02:00
B. Petersen 534bccb2f7 update translations 2020-05-21 22:28:30 +02:00
Hocuri dc32481764 Migrate muting to core functions 2020-05-21 10:24:29 +02:00
bjoern 2ce8747cac Merge pull request #1356 from deltachat/fix-mute-multiaccount
Use the mute functions of the core
2020-05-21 01:16:51 +02:00
B. Petersen 8791e8017b remove duplicated mute-icon; it is set by the caller, together with verified-icon, in ConversationListItem::bind() 2020-05-21 01:10:55 +02:00
B. Petersen 8b19b81c5b save one db-roundtrip on every chatlist-item 2020-05-21 00:26:45 +02:00
Hocuri adce890bef Continue using the core functions for muting 2020-05-20 23:51:25 +02:00
Hocuri 40e24c3a39 Start transitioning to the mute functions of the core 2020-05-20 23:51:25 +02:00
bjoern 2eca2330a9 Merge pull request #1373 from deltachat/standards-moved
standards.md has been moved to the core
2020-05-20 22:39:18 +02:00