Sort roster rooms

This commit is contained in:
James Booth
2016-01-02 02:41:51 +00:00
parent f9d89d564f
commit 8ca3fe4ea8
2 changed files with 27 additions and 8 deletions

View File

@@ -258,6 +258,8 @@ sv_ev_room_message(const char *const room_jid, const char *const nick,
}
}
rosterwin_roster();
// don't notify self messages
if (strcmp(nick, my_nick) == 0) {
return;
@@ -283,8 +285,6 @@ sv_ev_room_message(const char *const room_jid, const char *const nick,
notify_room_message(nick, jidp->localpart, ui_index, NULL);
}
jid_destroy(jidp);
rosterwin_roster();
}
void