|
|
|
@ -235,13 +235,17 @@ void GroupChatForm::updateUserNames()
@@ -235,13 +235,17 @@ void GroupChatForm::updateUserNames()
|
|
|
|
|
|
|
|
|
|
void GroupChatForm::onUserJoined(const ToxPk& user, const QString& name) |
|
|
|
|
{ |
|
|
|
|
addSystemInfoMessage(tr("%1 has joined the group").arg(name), ChatMessage::INFO, QDateTime::currentDateTime()); |
|
|
|
|
if (settings.getShowGroupJoinLeaveMessages()) { |
|
|
|
|
addSystemInfoMessage(tr("%1 has joined the group").arg(name), ChatMessage::INFO, QDateTime::currentDateTime()); |
|
|
|
|
} |
|
|
|
|
updateUserNames(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GroupChatForm::onUserLeft(const ToxPk& user, const QString& name) |
|
|
|
|
{ |
|
|
|
|
addSystemInfoMessage(tr("%1 has left the group").arg(name), ChatMessage::INFO, QDateTime::currentDateTime()); |
|
|
|
|
if (settings.getShowGroupJoinLeaveMessages()) { |
|
|
|
|
addSystemInfoMessage(tr("%1 has left the group").arg(name), ChatMessage::INFO, QDateTime::currentDateTime()); |
|
|
|
|
} |
|
|
|
|
updateUserNames(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|