mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
refactor: removed unused quitGroupChat method
`removeGroup` is used instead of this method
This commit is contained in:
parent
b87248c36b
commit
28aed05d0a
|
@ -1225,27 +1225,6 @@ uint32_t Core::joinGroupchat(int32_t friendId, uint8_t type, const uint8_t* frie
|
|||
return std::numeric_limits<uint32_t>::max();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Quit a groupchat
|
||||
*/
|
||||
void Core::quitGroupChat(int groupId) const
|
||||
{
|
||||
TOX_ERR_CONFERENCE_DELETE error;
|
||||
tox_conference_delete(tox, groupId, &error);
|
||||
|
||||
switch (error) {
|
||||
case TOX_ERR_CONFERENCE_DELETE_OK:
|
||||
return;
|
||||
|
||||
case TOX_ERR_CONFERENCE_DELETE_CONFERENCE_NOT_FOUND:
|
||||
qCritical() << "Conference not found";
|
||||
return;
|
||||
|
||||
default:
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void Core::groupInviteFriend(uint32_t friendId, int groupId)
|
||||
{
|
||||
TOX_ERR_CONFERENCE_INVITE error;
|
||||
|
|
|
@ -63,7 +63,6 @@ public:
|
|||
bool isFriendOnline(uint32_t friendId) const;
|
||||
bool hasFriendWithPublicKey(const ToxPk& publicKey) const;
|
||||
uint32_t joinGroupchat(int32_t friendId, uint8_t type, const uint8_t* pubkey, uint16_t length) const;
|
||||
void quitGroupChat(int groupId) const;
|
||||
|
||||
QString getUsername() const;
|
||||
Status getStatus() const;
|
||||
|
|
Loading…
Reference in New Issue
Block a user