Add error handling for room publish toggle (#12941)
* feat: added error handling for room publish toggle
* chore: fixed the messages and removed `console.log`
* chore: added minor comment that was removed
* fix: addressed review comments
* fix: fixed linting