Skip to content

Commit

Permalink
fix: refactored wireInvitiationString
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin.jaroschewski committed Jul 24, 2024
1 parent 7744540 commit d7c735c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/calendarIntegration/addMeetingLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ async function addMeetingLink(event: Office.AddinCommands.Event): Promise<void>
const currentLocation = await getLocation(mailboxItem);
const currentBody = await getBody(mailboxItem);

const wireInvitationString = "https://account.anta.wire.link/conversation-join/";
//Needs to be changed if the wire invitation string changes in future
const wireInvitationString = "/conversation-join/?key=";

//In some cases the wire invitation link is still present in location after deactiving the addin on mobile, so we can check for it and reuse it.
if (currentLocation.toString().includes(wireInvitationString) && !currentBody.includes(wireInvitationString)) {
Expand Down

0 comments on commit d7c735c

Please sign in to comment.