deltachat / deltachat-android

Email-based instant messaging for Android.
GNU General Public License v3.0
1.11k stars 146 forks source link

notifications are updated too often #608

Closed r10s closed 5 years ago

r10s commented 5 years ago

currently, the notifications list seems to be re-created whenever a chat or chatlist activity started; this results in annoying re-opening of the same notification over and over (at least on by phone :)

example:

i think it is fine, if the notification stays in the notification area, but we should find a way, that this window does not pop out every time.

in the telegram-ui, afaik, we remember the list of msg_ids really shown and update the list only if sth. has changed. this way, there were no additional pop outs. also, if the app is already in foreground, we lower the "importance" of the notification, so that only the icon is shown in the status bar, but nothing pops out (however, i think this is discussable :)

EDIT: btw. might be related to #100, however, marknoticedChat() is called on opening chats and the notification list is not wrong, just popping up to oftern, so maybe #100 does not play a role here.

cc @angelo-fuchs

angelo-fuchs commented 5 years ago

I can reproduce this. Odd, I haven't picked up on that yet :) Should be easy to fix.

r10s commented 5 years ago

great :)

r10s commented 5 years ago

@angelo-fuchs very cool, works like a charme :)

other things i encountered: