Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block to send mail on failing to start dialog or closing dialog #14

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

HashidaTKS
Copy link
Contributor

Block to send a mail on failing to start a dialog or closing a dialog with the up-right closing button.

src/web/app.js Outdated
@@ -112,6 +112,13 @@ function onMessageSend(event) {
width: 60,
},
function (asyncResult) {
if (asyncResult.status === Office.AsyncResultStatus.Failed) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

「FlexConfirmMail のため新しいウィンドウを表示しようとしています。」で「無視」を指定した場合などにここを通る。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

「FlexConfirmMail のため新しいウィンドウを表示しようとしています。」で「無視」を指定した後、画面をリロードするまでダイアログが表示されなくなることを確認しています。調査しても仕様かバグかわからなかったため(Outlook側が「無視」したことを記憶しているかもしれない)、一旦そのままにしています。

@HashidaTKS HashidaTKS requested a review from piroor October 2, 2024 08:19
@HashidaTKS HashidaTKS force-pushed the block-send-on-failing-or-closing branch from e7d6510 to 0be5fa6 Compare October 2, 2024 08:30
@@ -111,6 +111,13 @@ async function onMessageSend(event) {
promptBeforeOpen: needToPromptBeforeOpen,
},
(asyncResult) => {
if (asyncResult.status === Office.AsyncResultStatus.Failed) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

「FlexConfirmMail のため新しいウィンドウを表示しようとしています。」で「無視」を指定した場合などにここを通る。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

「FlexConfirmMail のため新しいウィンドウを表示しようとしています。」で「無視」を指定した後、画面をリロードするまでダイアログが表示されなくなることを確認しています。調査しても仕様かバグかわからなかったため(Outlook側が「無視」したことを記憶しているかもしれない)、一旦そのままにしています。

Copy link
Member

@piroor piroor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed that these changes work as described.

@piroor piroor merged commit 45c6bb0 into main Oct 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants