Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(core): fixed Timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Dec 26, 2018
1 parent cabed6d commit 6872ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/widget/form/groupchatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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());
}
}
}
Expand Down

0 comments on commit 6872ead

Please sign in to comment.