Skip to content

Commit

Permalink
[mirotalksfu] - fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jul 5, 2024
1 parent 23747fa commit f870ab0
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions public/js/RoomClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -7336,13 +7336,7 @@ class RoomClient {

this.startRendering();

if (!this.isMobileDevice) {
// Handle desktop or non-mobile device
this.handleDesktopChat();
} else {
// Handle mobile device
this.handleMobileChat();
}
this.isMobileDevice ? this.handleMobileVideoAiChat() : this.handleDesktopVideoAiChat();

VideoAI.active = true;

Expand All @@ -7352,16 +7346,14 @@ class RoomClient {
}
}

// Method for handling desktop or non-mobile device chat logic
handleDesktopChat() {
handleDesktopVideoAiChat() {
if (!this.isChatOpen) {
this.toggleChat();
}
this.sendMessageToVideoAi();
}

// Method for handling mobile device chat logic
handleMobileChat() {
handleMobileVideoAiChat() {
if (this.videoMediaContainer.childElementCount <= 2) {
isHideMeActive = !isHideMeActive;
this.handleHideMe();
Expand Down

0 comments on commit f870ab0

Please sign in to comment.