Remove notifications on disconnect
- Connect to core
- Receive notification
- Disconnect QuasselDroid
- Disconnect can be from main menu, from remote disconnect, from notification, or from failing to reconnect
- Arguably, notifications could be hidden during reconnect, too
Expected
Notifications are hidden as there's no way to interact with them, nor would they automatically dismiss if marked as read from another client.
Alternatively, specifically for the reconnect case, notifications remain visible, and any actions performed on them are queued until successful reconnect.
Actual
Notifications remain visible. Mark Read
does nothing, Reply
and sending a message results in an infinite spinner. Dismissing the notification still works.
Additional
I could see some utility in keeping notifications around during reconnect so you don't lose your place (e.g. how GMail keeps showing notifications when offline), but notifications would need to be marked in some way as "stale" to reduce confusion and so attempting to do actions won't mysteriously fail.