Added private chat roster group

This commit is contained in:
James Booth
2016-01-24 01:30:02 +00:00
parent 6d8a3e2020
commit 7cacee8781
2 changed files with 79 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ wins_get_private_chats(const char *const roomjid)
ProfWin *window = curr->data;
if (window->type == WIN_PRIVATE) {
ProfPrivateWin *privatewin = (ProfPrivateWin*)window;
if (g_str_has_prefix(privatewin->fulljid, prefix->str)) {
if (roomjid == NULL || g_str_has_prefix(privatewin->fulljid, prefix->str)) {
result = g_list_append(result, privatewin);
}
}