From 5e0fbe87a0f2c40c4e1fdecbd52bc46d7b917931 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 30 Dec 2017 17:44:47 +0200 Subject: [PATCH] Use `toMSecsSinceEpoch` to be compatible with qt < 5.8 --- src/RoomList.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RoomList.cc b/src/RoomList.cc index a47c73a..0274cef 100644 --- a/src/RoomList.cc +++ b/src/RoomList.cc @@ -328,7 +328,7 @@ RoomList::sortRoomsByLastMessage() if (room->lastMessageInfo().userid.isEmpty()) times.emplace(0, room); else - times.emplace(room->lastMessageInfo().datetime.toSecsSinceEpoch(), room); + times.emplace(room->lastMessageInfo().datetime.toMSecsSinceEpoch(), room); } for (auto it = times.cbegin(); it != times.cend(); ++it) {