mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
eccf50286e
commit
c30c1c6022
|
@ -657,6 +657,8 @@ void Widget::onFriendStatusChanged(int friendId, Status status)
|
|||
|
||||
contactListWidget->moveWidget(f->getFriendWidget(), status);
|
||||
|
||||
bool isActualChange = f->getStatus() != status;
|
||||
|
||||
f->setStatus(status);
|
||||
f->getFriendWidget()->updateStatusLight();
|
||||
|
||||
|
@ -675,7 +677,8 @@ void Widget::onFriendStatusChanged(int friendId, Status status)
|
|||
default:
|
||||
fStatus = tr("online", "contact status"); break;
|
||||
}
|
||||
f->getChatForm()->addSystemInfoMessage(tr("%1 is now %2", "e.g. \"Dubslow is now online\"").arg(f->getDisplayedName()).arg(fStatus),
|
||||
if (isActualChange)
|
||||
f->getChatForm()->addSystemInfoMessage(tr("%1 is now %2", "e.g. \"Dubslow is now online\"").arg(f->getDisplayedName()).arg(fStatus),
|
||||
"white", QDateTime::currentDateTime());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user