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:
parent
cabed6def3
commit
6872ead850
|
@ -344,7 +344,7 @@ void GroupChatForm::sendJoinLeaveMessages()
|
||||||
if (!current.contains(peerPk))
|
if (!current.contains(peerPk))
|
||||||
{
|
{
|
||||||
current.insert(peerPk, name);
|
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
|
// user leaves
|
||||||
|
@ -354,7 +354,7 @@ void GroupChatForm::sendJoinLeaveMessages()
|
||||||
{
|
{
|
||||||
current.remove(peerPk);
|
current.remove(peerPk);
|
||||||
ft.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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user