Use current room for /bookmark add and /bookmark remove

This commit is contained in:
James Booth
2016-10-05 00:52:57 +01:00
parent 94fd116ef8
commit c40660b0d8
3 changed files with 122 additions and 101 deletions

View File

@@ -137,7 +137,8 @@ void cmd_bookmark_add_shows_message_when_invalid_jid(void **state)
will_return(connection_get_status, JABBER_CONNECTED);
expect_cons_show("Can't add bookmark with JID 'room'; should be 'room@domain.tld'");
expect_cons_show("Invalid room, must be of the form room@domain.tld");
expect_cons_show("");
gboolean result = cmd_bookmark(&window, CMD_BOOKMARK, args);
assert_true(result);