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 613243 - Join room should be greyed out for AIM
Join room should be greyed out for AIM
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: General
2.29.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2010-03-18 14:03 UTC by Omer Akram
Modified: 2010-03-29 15:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A patch which adds empathy_account_chooser_filter_supports_multichat to filter out protocols that don't support multiuser chat (3.23 KB, patch)
2010-03-18 15:45 UTC, Andrew Gorcester
reviewed Details | Review
A patch which adds empathy_account_chooser_filter_supports_multichat to filter out protocols that don't support multiuser chat, rev. 1 (2.58 KB, patch)
2010-03-18 16:46 UTC, Andrew Gorcester
reviewed Details | Review
A patch which adds empathy_account_chooser_filter_supports_multichat to filter out protocols that don't support multiuser chat, rev. 2 (2.20 KB, patch)
2010-03-18 16:56 UTC, Andrew Gorcester
accepted-commit_after_freeze Details | Review

Description Omer Akram 2010-03-18 14:03:53 UTC
Telepathy-gabble currently dont support AIM group chat so when clicked on room>Join and AIM selected the text field for room and server should be greyed out so that users dont get tricked into believing there might be a porblem with the information they typed or some error.
Comment 1 Omer Akram 2010-03-18 14:04:28 UTC
originally reported at: https://bugs.launchpad.net/ubuntu/+source/empathy/+bug/540525
Comment 2 Guillaume Desmottes 2010-03-18 14:38:19 UTC
We should check if the connection support group text channel.
Comment 3 Andrew Gorcester 2010-03-18 15:39:09 UTC
I fixed this in the code thanks to some help in #empathy (wrote a new account filter empathy_account_chooser_filter_supports_multichat).  I am looking in to how to properly upload a patch.
Comment 4 Andrew Gorcester 2010-03-18 15:45:23 UTC
Created attachment 156466 [details] [review]
A patch which adds empathy_account_chooser_filter_supports_multichat to filter out protocols that don't support multiuser chat
Comment 5 Guillaume Desmottes 2010-03-18 16:04:27 UTC
Review of attachment 156466 [details] [review]:

Thanks a lot for your patch. It looks good from a code pov but should be done in a different way.

::: libempathy-gtk/empathy-account-chooser.c
@@ +903,3 @@
+ */
+gboolean
+empathy_account_chooser_filter_supports_multichat (TpAccount *account,

I wouldn't add this function here. It should be in new-chatroom-dialog as a static function.

@@ +906,3 @@
+						   gpointer   user_data)
+{
+	TpConnection *connection;  /* largely copied from empathy-new-message-dialog.c */

No need to specify that. :)
Comment 6 Andrew Gorcester 2010-03-18 16:46:42 UTC
Created attachment 156469 [details] [review]
A patch which adds empathy_account_chooser_filter_supports_multichat to filter out protocols that don't support multiuser chat, rev. 1
Comment 7 Guillaume Desmottes 2010-03-18 16:50:37 UTC
Review of attachment 156469 [details] [review]:

::: src/empathy-new-chatroom-dialog.c
@@ +131,3 @@
 static void	new_chatroom_dialog_button_close_error_clicked_cb   (GtkButton                *button,
 								     EmpathyNewChatroomDialog *dialog);
+static gboolean	empathy_account_chooser_filter_supports_multichat   (TpAccount *account,

You can avoid this prototype by defining this function before empathy_new_chatroom_dialog_show
Comment 8 Andrew Gorcester 2010-03-18 16:56:36 UTC
Created attachment 156471 [details] [review]
A patch which adds empathy_account_chooser_filter_supports_multichat to filter out protocols that don't support multiuser chat, rev. 2
Comment 9 Guillaume Desmottes 2010-03-18 17:01:56 UTC
Looks good; thanks a lot!

We are now in code freeze, so I have to ask approval before merging this patch.
Comment 10 Guillaume Desmottes 2010-03-29 15:35:39 UTC
Merged; will be in 2.30.1.

This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.