Let admins delete other clients' avatars
With b_client_avatar_delete_other, the client's context menu and the menu on their avatar offer "Delete Avatar", as in TeamSpeak 3. The server takes the deletion as ftdeletefile on /avatar_<unique id> (not the stored file's name, which it refuses with "convert error") and clears the client's avatar flag for everyone. Our own avatar's file is now deleted the same way, which only such clients are allowed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,7 @@ import com.ts3client.config.IdentityStore;
|
||||
import com.ts3client.config.Settings;
|
||||
import com.ts3client.contacts.ContactStore;
|
||||
import com.ts3client.net.ChannelNode;
|
||||
import com.ts3client.net.ClientEntry;
|
||||
import com.ts3client.net.ConnectionListener.ChatScope;
|
||||
import com.ts3client.net.PictureDownloads;
|
||||
import com.ts3client.net.TeamspeakConnection;
|
||||
@@ -115,6 +116,16 @@ final class ServerTab {
|
||||
return session.canSetAvatar();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canDeleteOthers() {
|
||||
return session.canDeleteOtherAvatars();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteOf(ClientEntry client) {
|
||||
avatar.deleteOf(client);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void set() {
|
||||
avatar.choose();
|
||||
|
||||
Reference in New Issue
Block a user