diff --git a/src/ConferenceCallManager.js b/src/ConferenceCallManager.js
index 99c7c72..d608b07 100644
--- a/src/ConferenceCallManager.js
+++ b/src/ConferenceCallManager.js
@@ -247,7 +247,6 @@ export class ConferenceCallManager extends EventEmitter {
stream,
audioMuted: this.audioMuted,
videoMuted: this.videoMuted,
- presenter: false,
};
this.participants.push(this.localParticipant);
@@ -401,17 +400,6 @@ export class ConferenceCallManager extends EventEmitter {
this.emit("participants_changed");
}
- setPresenter(userId, presenter) {
- const participant = this.participants.find(
- (participant) => participant.userId === userId
- );
-
- if (participant) {
- participant.presenter = presenter;
- this.emit("participants_changed");
- }
- }
-
logout() {
localStorage.removeItem("matrix-auth-store");
}
@@ -545,7 +533,6 @@ export class ConferenceCallManager extends EventEmitter {
stream,
audioMuted,
videoMuted,
- presenter: false,
};
this.participants.push(participant);
}
@@ -645,7 +632,6 @@ export class ConferenceCallManager extends EventEmitter {
stream: null,
audioMuted: false,
videoMuted: false,
- presenter: false,
};
// TODO: Should we wait until the call has been answered to push the participant?
// Or do we hide the participant until their stream is live?
diff --git a/src/ConferenceCallManagerHooks.js b/src/ConferenceCallManagerHooks.js
index eaedfac..09941b9 100644
--- a/src/ConferenceCallManagerHooks.js
+++ b/src/ConferenceCallManagerHooks.js
@@ -339,17 +339,6 @@ export function useVideoRoom(manager, roomId, timeout = 5000) {
setState((prevState) => ({ ...prevState, videoMuted: manager.videoMuted }));
}, [manager]);
- const togglePresenter = useCallback((selectedParticipant) => {
- manager.setPresenter(
- selectedParticipant.userId,
- !selectedParticipant.presenter
- );
- setState((prevState) => ({
- ...prevState,
- participants: [...manager.participants],
- }));
- }, []);
-
return {
loading,
joined,
@@ -361,7 +350,6 @@ export function useVideoRoom(manager, roomId, timeout = 5000) {
leaveCall,
toggleMuteVideo,
toggleMuteAudio,
- togglePresenter,
videoMuted,
audioMuted,
};
diff --git a/src/GridDemo.jsx b/src/GridDemo.jsx
index 479849e..15cc863 100644
--- a/src/GridDemo.jsx
+++ b/src/GridDemo.jsx
@@ -20,19 +20,6 @@ export function GridDemo() {
]);
}, [stream]);
- const togglePresenter = useCallback((selectedParticipant) => {
- setParticipants((participants) =>
- participants.map((participant) =>
- participant === selectedParticipant
- ? {
- ...participant,
- presenter: !participant.presenter,
- }
- : participant
- )
- );
- }, []);
-
const removeParticipant = useCallback((key) => {
setParticipants((participants) =>
participants.filter((participant) => participant.userId !== key)
@@ -56,7 +43,7 @@ export function GridDemo() {
)}
-