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 623682 - /query and /msg command are broken
/query and /msg command are broken
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Multi User Chat
2.29.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
: 629680 634141 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-07-06 14:26 UTC by Guillaume Desmottes
Modified: 2011-08-29 10:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
http://git.collabora.co.uk/?p=user/cassidy/empathy;a=shortlog;h=refs/heads/query-623682 (3.81 KB, patch)
2011-02-23 10:27 UTC, Guillaume Desmottes
reviewed Details | Review

Description Guillaume Desmottes 2010-07-06 14:26:07 UTC
The /query command is currently broken in git master. To fix it we need API to request a channel that we're going to handle ourself which is: https://bugs.freedesktop.org/show_bug.cgi?id=13422
Comment 1 Guillaume Desmottes 2010-07-14 09:25:31 UTC
This affects /msg as well.
Comment 2 Guillaume Desmottes 2010-08-17 12:33:54 UTC
Actually what we really need is the "request and observe" case: https://bugs.freedesktop.org/show_bug.cgi?id=29457

The requested channel has to be dispatched to its handler first and then we can send the message.
Comment 3 Guillaume Desmottes 2010-09-13 13:09:13 UTC
Seems it will be for 3.0 as we don't have the needed pieces in tp-glib and MC yet.
Comment 4 Guillaume Desmottes 2010-09-15 10:21:39 UTC
This affects the /msg command as well.
Comment 5 Guillaume Desmottes 2010-09-15 10:21:48 UTC
*** Bug 629680 has been marked as a duplicate of this bug. ***
Comment 6 Guillaume Desmottes 2010-11-09 08:03:31 UTC
*** Bug 634141 has been marked as a duplicate of this bug. ***
Comment 7 Guillaume Desmottes 2011-02-23 10:27:43 UTC
Created attachment 181680 [details] [review]
http://git.collabora.co.uk/?p=user/cassidy/empathy;a=shortlog;h=refs/heads/query-623682

 libempathy-gtk/empathy-chat.c |   62 +++++++++++++++++++++++++----------------
 1 files changed, 38 insertions(+), 24 deletions(-)
Comment 8 Emilio Pozuelo Monfort 2011-02-23 11:25:53 UTC
Comment on attachment 181680 [details] [review]
http://git.collabora.co.uk/?p=user/cassidy/empathy;a=shortlog;h=refs/heads/query-623682

Looks good to me.

>+		TpTextChannel *text = (TpTextChannel *) channel;

I'd do TP_TEXT_CHANNEL () since that checks channel really is a TpTextChannel.

And you need to bump the tp-glib dependency.

Feel free to commit directly with those changes.
Comment 9 Guillaume Desmottes 2011-02-24 09:22:23 UTC
(In reply to comment #8)
> (From update of attachment 181680 [details] [review])
> Looks good to me.
> 
> >+		TpTextChannel *text = (TpTextChannel *) channel;
> 
> I'd do TP_TEXT_CHANNEL () since that checks channel really is a TpTextChannel.

I checked it just the line before:
+       if (!EMP_STR_EMPTY (data->message) && TP_IS_TEXT_CHANNEL (channel)) {

That's because we have to make sure that the channel actually implement Messages.

> And you need to bump the tp-glib dependency.

I already did it when I merged the room list branch:
http://git.gnome.org/browse/empathy/commit/?id=c96c271f838ffa3911bd301b37b6c7aaffb2dfc2
Comment 10 Guillaume Desmottes 2011-02-24 10:13:46 UTC
Merged to master; no need to backport to 2.34.

This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 11 WolfRage 2011-02-26 09:14:21 UTC
Since there was a regression with this fix in the next patch can you also include support for "/join"?
Comment 12 Guillaume Desmottes 2011-02-28 08:50:02 UTC
(In reply to comment #11)
> Since there was a regression with this fix in the next patch can you also
> include support for "/join"?

What do you mean? /join is implemented since a while. I you are experiencing issues with it please file another bug.
Comment 13 WolfRage 2011-02-28 18:44:47 UTC
You are correct it is fixed. Sorry I just remembered the issue from awhile ago. Thank you and no problems now.