OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
690 stars 95 forks source link

Outlook addin is not terminated after timeout #5098

Open AtharvaDevSeclore opened 1 week ago

AtharvaDevSeclore commented 1 week ago

I am using an add-in that opens a displayDialogAsync to add a header and footer to an email in Outlook.

When I allow the email to timeout (by doing nothing while the dialog box is displayed), a warning notification appears stating: "Outlook can't send this message because there's a problem with the add-in." However, the notification stating "Add-in is working on your request" does not disappear.

After this, when I click on Send again and allow the add-in to finish executing, the header and footer are added twice.

I repeated this process, allowing the timeout to occur twice before sending, and the result was that the header and footer were added three times.

I am doing it on Mac, Outlook version 16.91, Classic UI

mobisw-msft commented 1 week ago

Hey @AtharvaDevSeclore ,

We are finding it difficult to reproduce the issue with the details provided. Can you please provide a repro using Scriptlab, or a hosted version of your add-in so that we can investigate further?