Push helpers should invalidate scope results
Bug #1537242 reported by
Ted Gould
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GMail WebApp |
New
|
Undecided
|
Unassigned | ||
Telegram app |
New
|
Undecided
|
Unassigned | ||
Twitter WebApp |
New
|
Undecided
|
Unassigned |
Bug Description
Push messages that include various pieces of data should also invalidate the scope results so that, if the scope is shown, it will get refreshed and show the updated results. This can be done by calling the invalidate results method on the dash with the AppID of the scope.
/com/canonical/
By calling that it'll get marked dirty.
To post a comment you must log in.
This would require significant work, mostly because the push client of Telegram simply shows notifications, but does not fetch all metadata for those messages from the server. All this data is actually fetched when the app is launched. Therefore, the push client would have to instantiate the API client, connect, fetch all differences, store them, and disconnect. I'm afraid whether this would fit in the allowed time for push client (sometimes you can get 1k+ messages on busy group chats). However, while previous sentence is not an argument against implementing this, I think the worst part is there's barely sufficient cycles for regular maintenance, so with all honesty I'll say this change will most probably not happen (unless there's a developer full time on the app), even though I'd like that, too.