mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
feat(MainDb): fetch chat rooms ordered by last update
This commit is contained in:
parent
a5c246f29f
commit
c30a7b48f5
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue