After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 746364 - Misc telepathy fixes
Misc telepathy fixes
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: telepathy
unspecified
Other All
: Normal normal
: ---
Assigned To: GNOME Shell Telepathy maintainer(s)
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2015-03-17 20:12 UTC by Giovanni Campagna
Modified: 2015-03-27 20:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
TelepathyClient: fix ackowledging chat messages (823 bytes, patch)
2015-03-17 20:12 UTC, Giovanni Campagna
committed Details | Review
Telepathy: hide chat notifications when focusing the app (1.50 KB, patch)
2015-03-17 20:12 UTC, Giovanni Campagna
committed Details | Review

Description Giovanni Campagna 2015-03-17 20:12:23 UTC
See patches
Comment 1 Giovanni Campagna 2015-03-17 20:12:26 UTC
Created attachment 299628 [details] [review]
TelepathyClient: fix ackowledging chat messages

ChatSource relies on the 'expanded' signal on the banner to
ack messages, but no code ever emits that.
Comment 2 Giovanni Campagna 2015-03-17 20:12:30 UTC
Created attachment 299629 [details] [review]
Telepathy: hide chat notifications when focusing the app

When the chat app is focused, we should hide all banners immediately.
A good way to do so, without tracking which app is focused, is
to look for messages that are acked when the banner is unexpanded,
which implies they were acked by some other telepathy client.
Comment 3 drago01 2015-03-18 21:05:53 UTC
Review of attachment 299628 [details] [review]:

LG. (Would need a freeze break exception though).
Comment 4 drago01 2015-03-18 21:07:11 UTC
Review of attachment 299629 [details] [review]:

Make sense didn't test it though (comment re freeze break applies here too).
Comment 5 Florian Müllner 2015-03-18 21:14:25 UTC
Review of attachment 299628 [details] [review]:

::: js/ui/calendar.js
@@ +1111,3 @@
     },
 
     unexpand: function(animate) {

Also for symmetry, please add an 'unexpanded' signal (even though unused)
Comment 6 Giovanni Campagna 2015-03-18 21:44:32 UTC
Should we ask for a freeze break or wait for 3.16.1? It's not a crasher or high priority
Comment 7 Florian Müllner 2015-03-18 22:21:57 UTC
Up to you, but I think waiting for 3.16.1 is not too big of an issue (not least because we do end up acknowledging messages in cases of follow-ups[0]) ...

[0] https://git.gnome.org/browse/gnome-shell/tree/js/ui/components/telepathyClient.js#n279
Comment 8 Giovanni Campagna 2015-03-27 20:13:19 UTC
Attachment 299628 [details] pushed as 934ec3c - TelepathyClient: fix ackowledging chat messages
Attachment 299629 [details] pushed as d8926b9 - Telepathy: hide chat notifications when focusing the app