When switching rooms inside the IFRAME through the "Go" command (https://rocket.chat/docs/developer-guides/iframe-integration/commands/) - the top panel appears
No NavBar:

Presence of NavBar:

hey @sdelfi I'm quite sure our 0.70.x versions are working different... could you test this version and tell me if its working as you expect?

Hi, @ggazzo
I did not quite understand your question. I have now 0.70.4 and tested on this version.

Or asked for something else?
I recorded a video (gif) with a problem I described: https://i.imgur.com/lNUvBxA.gif
In the left section - iframe chat window.
On the right are chat list buttons. I do switching through iframe API:
iframe_obj.get(0).contentWindow.postMessage({
externalCommand: 'go',
path: relative_url
}, '*')
I have noticed that this was probably because of the variable embeddedVersion variable not being set correctly when using the go command to switch channels.
From what I can see, in some places it's basically equal to RocketChat.Layout.isEmbedded(), and in one place, it equals to embedded-view if RocketChat.Layout.isEmbedded() equals to true (is the different behavior for the same variable name on purpose?).
As a workaround, I had to resort to patching the code manually where that variable was accessed or used and either remove a chunk of html or force its value to embedded-view to make things work. I hope this helps someone working on this issue.
My version: 0.72.3
Same here, when I use "go" command and ?layout=embedded the iframe is showing the menu.
Tested in version 0.73.2
We found a temporary solution, we add in Admin Panel -> Layout -> 'Custom Script for Logged In Users' section this code
window.RocketChat.Layout.layout = 'embedded';
For this way, you can set the layout var and the embedded mode will be active
We found a temporary solution, we add in Admin Panel -> Layout -> 'Custom Script for Logged In Users' section this code
window.RocketChat.Layout.layout = 'embedded';For this way, you can set the layout var and the embedded mode will be active
Worked for me,this is what I was looking for!!!
Most helpful comment
We found a temporary solution, we add in Admin Panel -> Layout -> 'Custom Script for Logged In Users' section this code
window.RocketChat.Layout.layout = 'embedded';For this way, you can set the layout var and the embedded mode will be active