Skip to content

Commit

Permalink
Merge pull request #40 from wireapp/kj/wir-21-make-add-in-work-for-ou…
Browse files Browse the repository at this point in the history
…tlook-mobile-bugfixes

fix: fixed slider and classic desktop application
  • Loading branch information
LennardZieglerCONPORT authored Jul 18, 2024
2 parents 0624613 + c73af24 commit 6a5645d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 29 deletions.
13 changes: 0 additions & 13 deletions manifest.xml.template
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,6 @@
</OfficeTab>
</ExtensionPoint>

<!-- Enable launching the add-in on the included event. -->
<ExtensionPoint xsi:type="LaunchEvent">
<LaunchEvents>
<LaunchEvent Type="OnAppointmentSend" FunctionName="onAppointmentSendHandler" SendMode="PromptUser" />
</LaunchEvents>
<!-- Identifies the runtime to be used (also referenced by the Runtime element). -->
<SourceLocation resid="WebViewRuntime.Url"/>
</ExtensionPoint>

</DesktopFormFactor>

<MobileFormFactor>
Expand Down Expand Up @@ -159,10 +150,6 @@
<bt:String id="TaskpaneButton.Tooltip" DefaultValue="Opens a pane displaying all available properties."/>
</bt:LongStrings>
</Resources>
<!-- Configure the prepend-on-send or append-on-send feature using the AppendOnSend value. -->
<ExtendedPermissions>
<ExtendedPermission>AppendOnSend</ExtendedPermission>
</ExtendedPermissions>
</VersionOverrides>
</VersionOverrides>
</OfficeApp>
6 changes: 1 addition & 5 deletions src/calendarIntegration/addMeetingLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { isOutlookCalIntegrationEnabled } from "./isOutlookCalIntegrationEnabled
import { createEvent } from "./createEvent";
import { mailboxItem } from "../commands/commands";
import { EventResult } from "../types/EventResult";
import { PlatformType } from "../types/PlatformTypes";

let createdMeeting: EventResult;

Expand Down Expand Up @@ -171,10 +170,7 @@ async function addMeetingLink(event: Office.AddinCommands.Event): Promise<void>
console.error("Error during adding Wire meeting link", error);
handleAddMeetingLinkError(error);
} finally {
if (isMobileDevice()) {
await appendToBody(mailboxItem, ""); //Workaround for mobile devices - Without body gets removed
}
event.completed();
event.completed( { allowEvent: true } );
}
}

Expand Down
11 changes: 0 additions & 11 deletions src/utils/mailbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,4 @@ export async function setLocation(item, meetlingLink) {
}
});

if (isMobileDevice()) {
/* Workaround for mobile devices - sometimes location gets removed*/
let currentLocation = await getLocation(item);

location.setAsync(currentLocation + "", function (asyncResult) {
if (asyncResult.status !== Office.AsyncResultStatus.Succeeded) {
console.error(`Action failed with message ${asyncResult.error.message}`);
return;
}
});
}
}

0 comments on commit 6a5645d

Please sign in to comment.