Closed r10s closed 5 years ago
I can reproduce this. Odd, I haven't picked up on that yet :) Should be easy to fix.
great :)
@angelo-fuchs very cool, works like a charme :)
other things i encountered:
the order is reverse: when there are already 3 notifications for a given chat, the 4th notification will pop up as expected but show the text from the first unread one. i think, this should be the last one. if possible, i am currently not so deep in the notification api of android
the notification does not close when the chat is opened (neither by a click on the notification nor by the chatlist), still not sure of this is related to #100. as dc_marknoticed_chat() is called, the dc_get_fresh_msgs() should not return these messages then. maybe it is needed to remove messages from the notification list silently or so. iirc i've done sth like that for telegram, not sure, however ;)
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