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 588812 - Group 1-to-1 chats in one window and MUC's in another one
Group 1-to-1 chats in one window and MUC's in another one
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Chat
unspecified
Other All
: Normal enhancement
: ---
Assigned To: empathy-maint
: 591528 (view as bug list)
Depends on:
Blocks: 591528
 
 
Reported: 2009-07-16 19:53 UTC by Abner Silva
Modified: 2009-12-07 17:00 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
http://git.collabora.co.uk/?p=user/cassidy/empathy;a=shortlog;h=refs/heads/separate-muc-588812 (2.97 KB, patch)
2009-12-07 15:19 UTC, Guillaume Desmottes
needs-work Details | Review

Description Abner Silva 2009-07-16 19:53:13 UTC
Grouping 1-to-1 (private) chats in one window and MUC's (room) in a different one could help the user to organizer better its tabs.
Comment 2 Sjoerd Simons 2009-07-17 11:11:33 UTC
Looks mostly fine. The one thing that bothers me is that it only checks if the current visible chat is a room instead of checking if the window has any chats. IMHO you should add a empathy_chat_window_has_room function to EmpathyChatWindow and use that to decide whether it's suitable or not 
Comment 3 Sumana Harihareswara 2009-11-22 19:45:44 UTC
*** Bug 591528 has been marked as a duplicate of this bug. ***
Comment 4 Sumana Harihareswara 2009-11-22 19:46:39 UTC
Travis provided some specific UI design thoughts in bug #591528 that may be useful.
Comment 5 Guillaume Desmottes 2009-12-07 15:19:40 UTC
Created attachment 149258 [details] [review]
http://git.collabora.co.uk/?p=user/cassidy/empathy;a=shortlog;h=refs/heads/separate-muc-588812

 src/empathy-chat-window.c |   31 +++++++++++++++++++++++++++++--
 src/empathy-chat-window.h |    3 ++-
 2 files changed, 31 insertions(+), 3 deletions(-)
Comment 6 Sjoerd Simons 2009-12-07 15:27:52 UTC
Review of attachment 149258 [details] [review]:

::: src/empathy-chat-window.c
@@ +1849,3 @@
  */
 EmpathyChatWindow *
+empathy_chat_window_get_default (gboolean room_filter)

Given that this isn't used just to filter things but actually both the true and the false value are meaningfull the name seems wrong

@@ +1876,3 @@
+			nb_rooms = empathy_chat_window_get_nb_rooms (chat_window);
+
+			/* We add a new room only if the window has at least one room */

Comment isn't clear here, something like ``Skip the window if there aren't any rooms in it'' would be better

@@ +1880,3 @@
+				continue;
+
+			/* We add a new 1-1 chat only if the window has at least one 1-1 chat */

This comment is a lie, the code below doesn't do that
Comment 7 Guillaume Desmottes 2009-12-07 16:35:44 UTC
Review of attachment 149258 [details] [review]:

::: src/empathy-chat-window.c
@@ +1849,3 @@
  */
 EmpathyChatWindow *
+empathy_chat_window_get_default (gboolean room_filter)

renamed to room.

@@ +1876,3 @@
+			nb_rooms = empathy_chat_window_get_nb_rooms (chat_window);
+
+			/* We add a new room only if the window has at least one room */

I changed both comments.
Comment 8 Guillaume Desmottes 2009-12-07 17:00:10 UTC
Fixed in master.

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.