]> git.0d.be Git - empathy.git/commitdiff
chatroom-manager: Save correct room name
authorJonas Bonn <jonas@southpole.se>
Mon, 8 Mar 2010 09:30:02 +0000 (10:30 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 9 Mar 2010 08:39:59 +0000 (09:39 +0100)
When writing out the room name to the persistance file, the room name should
properly be gotten with the get_room function.  This bug has probably not
bitten too many users as the remote room name and the favorite chatroom name
usually are usually the same; however, if the user were to change the
favorite chatroom name then this bug would become apparent.

libempathy/empathy-chatroom-manager.c

index bfb85f53f1695becf7e978f246868fb278d3e9cc..d5513caf12e0873a207b1c6b6ed9155279446d26 100644 (file)
@@ -112,7 +112,7 @@ chatroom_manager_file_save (EmpathyChatroomManager *manager)
                xmlNewTextChild (node, NULL, (const xmlChar *) "name",
                        (const xmlChar *) empathy_chatroom_get_name (chatroom));
                xmlNewTextChild (node, NULL, (const xmlChar *) "room",
-                       (const xmlChar *) empathy_chatroom_get_name (chatroom));
+                       (const xmlChar *) empathy_chatroom_get_room (chatroom));
                xmlNewTextChild (node, NULL, (const xmlChar *) "account",
                        (const xmlChar *) account_id);
                xmlNewTextChild (node, NULL, (const xmlChar *) "auto_connect",