With JS add-ins model, there is no way to differentiate between primary outlook window and read mail window of Outlook for Mac 16.60 or lower versions.
Outlook triggers same callback when user select an email in primary window or double click and open a mail item from main window. There should be a way to differentiate the window so that I can show / hide options/actions in the taskpane. Currently there is no way to do it. whatever I add it for primary outlook window appears for read mail window also.
Since same callback gets triggered on both cases (case 1 - open task-pane from primary outlook window , case 2 - double click and open mail item from primary outlook window) there is no way to show/hide options / actions in. task-pane. Some of the actions which is shown in primary outlook window are irrelevant for read mail window.
Could you please add a provision for the same? A property which differentiates the window. In old VSTO or COM add-ins mode, we have ActiveWindow() / ActiveInspector() which returns the same. Here a property on callback or a context item on callback trigger which will resolve this limitation.