mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Grouplist: tracking of the friend's alias changing (fix: #1847)
This commit is contained in:
parent
23a82a3b28
commit
fc8de5d0cf
|
@ -27,6 +27,8 @@
|
||||||
#include "src/persistence/settings.h"
|
#include "src/persistence/settings.h"
|
||||||
#include "src/persistence/profile.h"
|
#include "src/persistence/profile.h"
|
||||||
#include "src/nexus.h"
|
#include "src/nexus.h"
|
||||||
|
#include "src/grouplist.h"
|
||||||
|
#include "src/group.h"
|
||||||
|
|
||||||
Friend::Friend(uint32_t FriendId, const ToxId &UserId)
|
Friend::Friend(uint32_t FriendId, const ToxId &UserId)
|
||||||
: userName{Core::getInstance()->getPeerName(UserId)},
|
: userName{Core::getInstance()->getPeerName(UserId)},
|
||||||
|
@ -88,6 +90,11 @@ void Friend::setAlias(QString name)
|
||||||
GUI::setWindowTitle(dispName);
|
GUI::setWindowTitle(dispName);
|
||||||
|
|
||||||
emit displayedNameChanged(getFriendWidget(), getStatus(), hasNewEvents);
|
emit displayedNameChanged(getFriendWidget(), getStatus(), hasNewEvents);
|
||||||
|
|
||||||
|
for (Group *g : GroupList::getAllGroups())
|
||||||
|
{
|
||||||
|
g->regeneratePeerList();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Friend::setStatusMessage(QString message)
|
void Friend::setStatusMessage(QString message)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user