mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Use toMSecsSinceEpoch
to be compatible with qt < 5.8
This commit is contained in:
parent
208f957911
commit
5e0fbe87a0
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ RoomList::sortRoomsByLastMessage()
|
||||||
if (room->lastMessageInfo().userid.isEmpty())
|
if (room->lastMessageInfo().userid.isEmpty())
|
||||||
times.emplace(0, room);
|
times.emplace(0, room);
|
||||||
else
|
else
|
||||||
times.emplace(room->lastMessageInfo().datetime.toSecsSinceEpoch(), room);
|
times.emplace(room->lastMessageInfo().datetime.toMSecsSinceEpoch(), room);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto it = times.cbegin(); it != times.cend(); ++it) {
|
for (auto it = times.cbegin(); it != times.cend(); ++it) {
|
||||||
|
|
Loading…
Reference in a new issue