|
|
|
@ -37,8 +37,6 @@ Group::Group(int groupId, const QString& name, bool isAvGroupchat, const QString
@@ -37,8 +37,6 @@ Group::Group(int groupId, const QString& name, bool isAvGroupchat, const QString
|
|
|
|
|
, nPeers{0} |
|
|
|
|
, avGroupchat{isAvGroupchat} |
|
|
|
|
{ |
|
|
|
|
chatForm = new GroupChatForm(this); |
|
|
|
|
|
|
|
|
|
// in groupchats, we only notify on messages containing your name <-- dumb
|
|
|
|
|
// sound notifications should be on all messages, but system popup notification
|
|
|
|
|
// on naming is appropriate
|
|
|
|
@ -46,11 +44,6 @@ Group::Group(int groupId, const QString& name, bool isAvGroupchat, const QString
@@ -46,11 +44,6 @@ Group::Group(int groupId, const QString& name, bool isAvGroupchat, const QString
|
|
|
|
|
userWasMentioned = 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Group::~Group() |
|
|
|
|
{ |
|
|
|
|
delete chatForm; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Group::updatePeer(int peerId, QString name) |
|
|
|
|
{ |
|
|
|
|
ToxPk peerKey = Core::getInstance()->getGroupPeerPk(groupId, peerId); |
|
|
|
@ -137,11 +130,6 @@ int Group::getPeersCount() const
@@ -137,11 +130,6 @@ int Group::getPeersCount() const
|
|
|
|
|
return nPeers; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
GroupChatForm* Group::getChatForm() |
|
|
|
|
{ |
|
|
|
|
return chatForm; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
QStringList Group::getPeerList() const |
|
|
|
|
{ |
|
|
|
|
return peers; |
|
|
|
|