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

This commit is contained in:
Ronan Abhamon 2017-10-27 11:05:17 +02:00
parent a5c246f29f
commit c30a7b48f5

View file

@ -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";
L_D();