1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

show self title changes

This commit is contained in:
dubslow 2014-11-05 20:50:32 -06:00 committed by Tux3 / Mlkj / !Lev.uXFMLA
parent 71c34b9d69
commit f4e0ea83ef

View File

@ -524,7 +524,7 @@ void Core::onGroupTitleChange(Tox*, int groupnumber, int peernumber, const uint8
qDebug() << "Core: group" << groupnumber << "title changed by" << peernumber;
Core* core = static_cast<Core*>(_core);
QString author;
if (peernumber >= 0 && !tox_group_peernumber_is_ours(core->tox, groupnumber, peernumber))
if (peernumber >= 0)
author = core->getGroupPeerName(groupnumber, peernumber);
emit core->groupTitleChanged(groupnumber, author, CString::toString(title, len));
}
@ -832,7 +832,7 @@ void Core::changeGroupTitle(int groupId, const QString& title)
CString cTitle(title);
int err = tox_group_set_title(tox, groupId, cTitle.data(), cTitle.size());
if (!err)
emit groupTitleChanged(groupId, "", title);
emit groupTitleChanged(groupId, getUsername(), title);
}
void Core::sendFile(int32_t friendId, QString Filename, QString FilePath, long long filesize)