diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-12-30 17:44:47 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-12-30 17:44:47 +0200 |
commit | 5e0fbe87a0f2c40c4e1fdecbd52bc46d7b917931 (patch) | |
tree | d1ee23cacae33d920da4c5bbf7e3311ca9bd5073 | |
parent | Re-order room list based on activity (diff) | |
download | nheko-5e0fbe87a0f2c40c4e1fdecbd52bc46d7b917931.tar.xz |
Use `toMSecsSinceEpoch` to be compatible with qt < 5.8
-rw-r--r-- | src/RoomList.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RoomList.cc b/src/RoomList.cc index a47c73a6..0274cefe 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) { |