[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ayatana] Messaging menu: efficiently dismissing messages



> It's a reasonable idea. Are you envisaging:
> 
>  - a menu entry, perhaps at the very bottom of the menu, which says
> something like "Clear these message highlights"
>  - that might be shown only when there are highlighted messages
>  - clicking it removes those messages from the menu and resets the
> indicator to "normal" state

Exactly.

> The implementation might be tricky, because I think we generally rely on
> apps existing ability to track "unread" messages. We would now be asking
> them to track "unread messages that have appeared since the highlights
> were cleared" separately from "unread messages which were cleared". So,
> a new capability in every compliant app.

Is it really that complicated? I thought the current implementation is
something in the lines of:

1) app receives message -> adds indicator
2a) indicator is clicked -> removes indicator, opens message
2b) message opened via other means -> removes indicator

So it would be just a matter of making (2b) into a no-op if the
indicator was previous removed by the clear button. This is probably
*already* implemented, as nothing (supposedly) crashes if I receive
a message, kill the messaging menu and open the message: the
implementation is already robust to the expected indicator not being
there anymore.