Skip to content
Snippets Groups Projects
Commit 5e0fbe87 authored by Konstantinos Sideris's avatar Konstantinos Sideris
Browse files

Use `toMSecsSinceEpoch` to be compatible with qt < 5.8

parent 208f9579
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment