Use toMSecsSinceEpoch to be compatible with qt < 5.8

This commit is contained in:
Konstantinos Sideris 2017-12-30 17:44:47 +02:00
parent 208f957911
commit 5e0fbe87a0

View file

@ -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) {