B. Petersen
4c0076c2f5
respect in-chat-notification setting for outgoing messages
2020-05-25 15:12:34 +02:00
B. Petersen
fe0b1cecd2
remove dead code
2020-05-25 14:36:14 +02:00
B. Petersen
e8a3bae004
re-add mark-read action button
2020-05-25 14:36:13 +02:00
B. Petersen
050c358859
make in-chat-sounds respect notification- and mute-settings
2020-05-25 13:38:57 +02:00
bjoern
f30da6e912
Update src/org/thoughtcrime/securesms/notifications/NotificationCenter.java
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2020-05-25 13:38:57 +02:00
bjoern
a65a463bf9
Update src/org/thoughtcrime/securesms/notifications/NotificationCenter.java
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2020-05-25 13:38:57 +02:00
B. Petersen
cf3d22f6ea
handle null in ringtones more carefully, thanks @Hocuri
2020-05-25 13:38:57 +02:00
B. Petersen
143f6c5b67
remove useless init, thanks @Hocuri
2020-05-25 13:38:56 +02:00
bjoern
d8c0e1367e
Update src/org/thoughtcrime/securesms/notifications/NotificationCenter.java
...
Co-authored-by: Hocuri <hocuri@gmx.de >
2020-05-25 13:38:56 +02:00
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
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
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
Hocuri
dc32481764
Migrate muting to core functions
2020-05-21 10:24:29 +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
B. Petersen
6f2a40ecb3
do not delete the group-avatar on editing group-name
2020-05-14 01:59:52 +02:00