Meeting and chat entrypoints
Meeting and chat entrypoints give users and other application features a safe way to open a Teams meeting or conversation. They combine small desktop dialogs, contact search, Teams deep links, and in-page routing so a targeted destination opens in the right Teams workspace. They are part of the broader communications and meetings flow.
Entrypoint model
The application exposes two user-facing entrypoints. Join Meeting accepts a meeting link and opens it in the main Teams window. Quick Chat helps a user find a contact and can send a message when the required Graph access is available. Other application callers use the targeted chat route to open a conversation directly.
The same destination model also serves application-facing callers. A Teams URL can arrive from a menu action, a renderer action, a notification or a second application instance. The main window keeps the destination inside the active Teams session when it can, and uses a full navigation when the loaded Teams app cannot consume the route.
| Entrypoint | User goal | Destination path |
|---|---|---|
| Join Meeting | Enter a meeting from a copied or typed link | Validated Teams meeting URL in the main window |
| Quick Chat search | Find a person quickly | Contact result from Microsoft Graph |
| Quick Chat compose | Send a short message without leaving the modal | Resolved one-to-one chat through Microsoft Graph |
| External Teams deep link | Open a targeted meeting, chat or channel | In-page Teams route or full Teams navigation |
Join Meeting dialog
The Join Meeting dialog is a focused input step for meeting links. It can start with a valid link from the clipboard, checks the link as the user types, and only sends a valid Teams meeting URL to the main process. Enter submits the form and Escape cancels it.
The main process validates the link again before navigation. This second check keeps the dialog boundary from being the only control on what enters the main Teams window. On success, the application preserves the last non-meeting Teams location so the user can return after the meeting; when navigation fails, it shows a short error instead of exposing URL details.
flowchart LR
A[Join Meeting menu] --> B[Dialog]
B -->|valid link| C[Main process validation]
B -->|cancel or Escape| D[Close dialog]
C --> E[Teams meeting route]
E --> F[Preserve prior Teams location]
The dialog is available from the application menu with Ctrl+J. Its state is reused while open, so a later open refreshes the clipboard value and validation rule instead of creating a second dialog.
References: app/…/appMenu.js• L12-19 app/…/index.js• L594-683 app/…/index.js• L23-109 app/…/joinMeeting.js• L8-72
Quick Chat modal
Quick Chat is an optional small window for finding a person and starting a focused chat action. It is disabled unless quickChat.enabled is true, and an optional global shortcut can show or hide it even when the main window is not focused. The application menu provides the same toggle when the feature is enabled.
The modal uses the People API to search contacts. Selecting a result changes the modal to a compose view. The compose view sends a non-empty message through the Graph API when graphApi.enabled is also active; it reports success or failure in the modal and keeps the user in the current contact flow.
sequenceDiagram
participant U as User
participant Q as Quick Chat
participant G as Graph API
participant T as Teams workspace
U->>Q: Open and search for a person
Q->>G: Search People API
G-->>Q: Ranked contacts
U->>Q: Select contact
Q->>T: Resolve or activate one-to-one chat
Q->>G: Send chat message
G-->>Q: Success or error
The modal does not provide chat history. Its direct message path depends on a usable one-to-one chat and the permissions in the current Teams session. If those conditions are not met, the user must open the conversation in Teams or start it there first.
References: app/index.js• L617-635 app/…/appMenu.js• L21-29 app/…/index.js• L693-701 app/…/index.js• L10-58 app/…/QuickChatModal.js• L11-83 app/…/quickChatModalPreload.js• L3-22 app/…/quickChatModal.html• L516-639 app/…/options.js• L939-962
Chat deep links
Chat deep links turn a selected email address into a Teams conversation target. The renderer keeps the current Teams origin and adds the /l/chat/0/0?users=... route, which avoids sending the user to a different Teams host. The input must look like an email address; invalid input is rejected before navigation.
This pathway is useful beyond Quick Chat. Notifications and call alerts and other application features can use the same targeted chat route when they know the sender or recipient. The destination remains Teams' native chat surface, so it retains the active session and its normal conversation behavior.
References: app/…/preload.js• L192-212 docs-site/…/014-quick-chat-deep-link-approach.md• L23-30 docs-site/…/014-quick-chat-deep-link-approach.md• L51-75
Meeting and Teams deep links
Deep links are application-facing launch requests for meetings, chats, channels, and related Teams routes. The app accepts both Teams HTTPS links and supported msteams: protocol forms, then turns supported launcher paths into a route for the already loaded Teams single-page app when the origin matches.
The route is accepted only when it contains enough information for Teams to resolve it. For example, a chat route without a recipient is not treated as a targeted chat. If the current page is not the Teams origin or the Teams app does not consume the route, the application falls back to a full navigation. This preserves compatibility with login pages and Teams route changes.
flowchart TD
A[Application or OS launch request] --> B[Recognize Teams HTTPS or msteams link]
B --> C{Loaded Teams origin?}
C -->|yes| D[Offer route to Teams SPA]
D --> E{SPA consumes route?}
E -->|yes| F[Show targeted meeting or chat]
E -->|no| G[Full Teams navigation]
C -->|no| G
G --> F
A second application instance forwards its link to the existing window and restores that window. The application rate-limits repeated forwarded launches for a short period, which prevents duplicate opens while a Teams navigation is still settling. The route then follows the same connectivity and real-time event workspace path as other application navigation.
References: app/…/index.js• L884-924 app/…/index.js• L1062-1098 app/…/deepLinkRouter.js• L1-17 app/…/deepLinkRouter.js• L23-55 app/…/deepLinkRouter.js• L66-147 app/…/options.js• L673-700
Profile and popup entrypoints
Teams can create a new window or popup for a link. For supported deep links, the profile window policy denies the popup and loads the meeting or chat target into the originating profile view when in-app loading is enabled. It then activates that profile so a link from a background account does not silently navigate a hidden workspace.
This policy keeps the target tied to the account that produced the link. Other popup types keep their existing default behavior, so a deep-link rule does not change unrelated authentication or external-link flows. Once a meeting opens, media controls and sharing remain part of the screen-sharing and media surface rather than this entrypoint flow.
References: app/…/profileWindowOpenPolicy.js• L1-26 app/…/profileWindowOpenPolicy.js• L32-57 app/…/profileWindowOpenPolicy.js• L60-105
Application-facing contracts
The entrypoints cross several process boundaries. The dialog and modal expose narrow preload APIs, while the main process owns window lifetime, URL checks, profile activation, and Graph calls. IPC channel names are allow-listed so a renderer can request only the actions used by these flows.
| Contract | Boundary | Result |
|---|---|---|
| Join dialog submit or cancel | Dialog renderer to main process | Validate and navigate, or close |
| Quick Chat show or hide | Modal or application menu to main process | Show, hide, or toggle the modal |
| People search | Quick Chat preload to Graph handler | Return contact results or an error |
| Message send | Quick Chat preload to Graph handler | Resolve a one-to-one chat and send text |
| Teams deep link | OS, notification, or renderer to main window | Route in the active SPA or reload |
References: app/…/preload.js• L1-13 app/…/quickChatModalPreload.js• L1-23 app/…/ipcHandlers.js• L68-94 app/…/ipcValidator.js• L96-111
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the meeting URL rule aligned between dialog feedback, main-process validation, protocol launch handling, and profile popup handling.
- Keep the chat deep-link shape aligned between renderer callers and the in-page router, including the recipient query required for targeted chats.
- If Quick Chat message permissions or chat resolution rules change, update both the modal's user feedback and the Graph handler's validation contract.
- If a new entrypoint can open a background profile, confirm that the destination activates the profile that owns the Teams session.
- If an IPC channel changes, update the preload API and the central IPC allow-list together.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| A typed or pasted value does not match the configured Teams meeting rule | Join stays disabled or navigation is rejected | The dialog and main process validate the link independently |
| The Teams page is not on the configured Teams origin | In-page routing cannot safely target the loaded document | The router checks origin and falls back to full navigation |
| A chat deep link has no recipient | Teams may open an empty chat surface | The router declines chat routes without a users query value |
| Graph API is disabled or the token lacks the needed chat access | Search or message send returns an error | Quick Chat reports the error and the user can use native Teams chat |
| No existing one-to-one chat can be resolved | Inline message send cannot identify a safe destination | The resolver requires a two-member chat containing the target user |
| A deep link comes from a background profile | Navigation in a hidden view leaves the user on the wrong account | Profile handling activates the originating profile |
Key files
| File | Why to read it |
|---|---|
| app/…/index.js | Shows how the Join Meeting action validates links, preserves the prior Teams location, and starts navigation. |
| app/…/index.js | Defines the dialog lifecycle and the main-process boundary for join requests. |
| app/…/index.js | Defines when Quick Chat exists and how it is shown or toggled. |
| app/…/quickChatModal.html | Shows the user flow from contact search to compose and message status. |
| app/…/preload.js | Exposes the renderer-side targeted chat entrypoint. |
| app/…/deepLinkRouter.js | Explains when a meeting or chat link can use the loaded Teams SPA. |
| app/…/profileWindowOpenPolicy.js | Explains how targeted links stay in the correct profile workspace. |
| app/…/index.js | Describes contact-backed chat resolution and message delivery. |