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 644085 - ChatroomManager should find chats by channel not identifier
ChatroomManager should find chats by channel not identifier
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Chat
2.33.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
Depends on:
Blocks: 644086
 
 
Reported: 2011-03-07 04:06 UTC by Danielle Madeley
Modified: 2011-05-05 12:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (4.33 KB, patch)
2011-03-07 04:08 UTC, Danielle Madeley
reviewed Details | Review
updated patch (6.17 KB, patch)
2011-04-07 02:07 UTC, Danielle Madeley
accepted-commit_now Details | Review
replacement for find channels nonsense (3.13 KB, patch)
2011-05-05 06:45 UTC, Danielle Madeley
reviewed Details | Review

Description Danielle Madeley 2011-03-07 04:06:07 UTC
If two different channels have the same TargetID, Empathy currently will not open separate windows. This means you can't open an SMS channel separately from a Text channel.
Comment 2 Guillaume Desmottes 2011-03-07 08:31:25 UTC
Review of attachment 182671 [details] [review]:

::: src/empathy-chat-window.h
@@ +72,2 @@
 gboolean           empathy_chat_window_has_focus      (EmpathyChatWindow *window);
 EmpathyChat *      empathy_chat_window_find_chat      (TpAccount        *account,

Do we really need to keep empathy_chat_window_find_chat()? Or at least it seems it can become static.
Comment 3 Danielle Madeley 2011-04-06 05:43:19 UTC
(In reply to comment #2)
> Review of attachment 182671 [details] [review]:
> 
> Do we really need to keep empathy_chat_window_find_chat()? Or at least it seems
> it can become static.

Your choice :)
Comment 4 Guillaume Desmottes 2011-04-06 08:39:27 UTC
Let's make it static then.
Comment 5 Danielle Madeley 2011-04-07 02:07:35 UTC
Created attachment 185382 [details] [review]
updated patch

Done :)
Comment 6 Guillaume Desmottes 2011-04-07 08:33:50 UTC
Review of attachment 185382 [details] [review]:

Looks good.

SMS channels won't be implemented in 3.0, so I guess there is no point merging this before branching, right?
Comment 7 Guillaume Desmottes 2011-04-07 09:48:59 UTC
I branched so feel free to merge to master.
Comment 8 Danielle Madeley 2011-04-07 22:35:45 UTC
We do need this in 2.34 as well.
Comment 9 Danielle Madeley 2011-05-05 06:20:55 UTC
This whole approach is wrong, because channel paths can change across reconnects. A better approach would be to have a list of properties we should compare, for the moment I'm just planning on replacing this with a patch to check if the TpChat is an SMSChannel.
Comment 10 Danielle Madeley 2011-05-05 06:45:07 UTC
Created attachment 187259 [details] [review]
replacement for find channels nonsense

This goes on top of my SMS support work.
Comment 11 Guillaume Desmottes 2011-05-05 11:46:33 UTC
Review of attachment 187259 [details] [review]:

++