Browse Source

fix(core): fixed Timestamps

reviewable/pr5469/r2
Monsterovich 7 years ago
parent
commit
6872ead850
  1. 4
      src/widget/form/groupchatform.cpp

4
src/widget/form/groupchatform.cpp

@ -344,7 +344,7 @@ void GroupChatForm::sendJoinLeaveMessages() @@ -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() @@ -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());
}
}
}

Loading…
Cancel
Save