Commit c30a7b48 authored by Ronan's avatar Ronan
Browse files

feat(MainDb): fetch chat rooms ordered by last update

parent a5c246f2
......@@ -1049,7 +1049,8 @@ MainDb::MainDb (Core *core) : AbstractDb(*new MainDbPrivate) {
list<shared_ptr<ChatRoom>> MainDb::getChatRooms () const {
static const string query = "SELECT value, creation_date, last_update_date, capabilities, subject, last_notify_id"
" FROM chat_room, sip_address"
" WHERE peer_sip_address_id = id";
" WHERE peer_sip_address_id = id"
" ORDER BY last_update_date DESC";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment