Make room delete permanent (#2390)

This commit is contained in:
Ahmad Farhat
2020-12-24 13:54:27 -05:00
committed by GitHub
parent b2500e6504
commit c9b16729f6
3 changed files with 8 additions and 1 deletions

View File

@ -137,7 +137,10 @@ class RoomsController < ApplicationController
begin
# Don't delete the users home room.
raise I18n.t("room.delete.home_room") if @room == @room.owner.main_room
@room.destroy
# Destroy all recordings then permanently delete the room
delete_all_recordings(@room.bbb_id)
@room.destroy(true)
rescue => e
flash[:alert] = I18n.t("room.delete.fail", error: e)
else