1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(core): fixed Timestamps

This commit is contained in:
Monsterovich 2018-12-22 02:42:42 +02:00
parent cabed6def3
commit 6872ead850

View File

@ -344,7 +344,7 @@ void GroupChatForm::sendJoinLeaveMessages()
if (!current.contains(peerPk))
{
current.insert(peerPk, name);
addSystemInfoMessage(tr("%1 has joined the group").arg(name), ChatMessage::INFO, QDateTime());
addSystemInfoMessage(tr("%1 has joined the group").arg(name), ChatMessage::INFO, QDateTime::currentDateTime());
}
}
// user leaves
@ -354,7 +354,7 @@ void GroupChatForm::sendJoinLeaveMessages()
{
current.remove(peerPk);
ft.remove(peerPk);
addSystemInfoMessage(tr("%1 has left the group").arg(name), ChatMessage::INFO, QDateTime());
addSystemInfoMessage(tr("%1 has left the group").arg(name), ChatMessage::INFO, QDateTime::currentDateTime());
}
}
}