Skip to content

Commit

Permalink
Immediate sending owner's dial_state_changed
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Jan 14, 2024
1 parent dc625a8 commit c6d671d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions frontend/src/ChatParticipantsModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@
if (!this.show || dto.chatId != this.chatId || !this.participantsDto.participants) {
return;
}
for (const participant of this.participantsDto.participants) {
innerLoop:
for (const videoDialChanged of dto.dials) {
Expand Down
6 changes: 3 additions & 3 deletions video/handlers/invite.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ func (vh *InviteHandler) addToCalling(c echo.Context, callee int64, chatId int64
// we remove callee's previous inviting - only after CanOverrideCallStatus() check
vh.removePrevious(c, callee)

// for better user experience
vh.chatInvitationService.SendInvitationsWithStatuses(c.Request().Context(), chatId, userPrincipalDto.UserId, getMap([]int64{callee}, services.CallStatusInviting))

err = vh.dialRedisRepository.AddToDialList(c.Request().Context(), callee, chatId, userPrincipalDto.UserId, services.CallStatusInviting)
if err != nil {
logger.GetLogEntry(c.Request().Context()).Errorf("Error %v", err)
return http.StatusInternalServerError
}

// for better user experience
vh.sendEvents(c, chatId, []int64{callee}, services.CallStatusInviting, userPrincipalDto.UserId)

return http.StatusOK
}

Expand Down

0 comments on commit c6d671d

Please sign in to comment.