Skip to content
This repository has been archived by the owner on Oct 17, 2019. It is now read-only.

Commit

Permalink
Use toMSecsSinceEpoch to be compatible with qt < 5.8
Browse files Browse the repository at this point in the history
  • Loading branch information
mujx committed Dec 30, 2017
1 parent 208f957 commit 5e0fbe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RoomList.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5e0fbe8

Please sign in to comment.