summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-30 17:44:47 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-12-30 17:44:47 +0200
commit5e0fbe87a0f2c40c4e1fdecbd52bc46d7b917931 (patch)
treed1ee23cacae33d920da4c5bbf7e3311ca9bd5073 /src
parentRe-order room list based on activity (diff)
downloadnheko-5e0fbe87a0f2c40c4e1fdecbd52bc46d7b917931.tar.xz
Use `toMSecsSinceEpoch` to be compatible with qt < 5.8
Diffstat (limited to 'src')
-rw-r--r--src/RoomList.cc2
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) {