Skip to content

Commit

Permalink
Deep Link: Use new parser for public message links (#5390)
Browse files Browse the repository at this point in the history
  • Loading branch information
zubiden authored and Ajaxy committed Dec 31, 2024
1 parent f7e316f commit 8eb1f88
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/util/deeplink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ export const processDeepLink = (url: string): boolean => {
case 'privateMessageLink':
handlePrivateMessageLink(parsedLink, actions);
return true;
case 'publicMessageLink': {
actions.openChatByUsername({
username: parsedLink.username,
threadId: parsedLink.threadId,
messageId: parsedLink.messageId,
commentId: parsedLink.commentId,
});
return true;
}
case 'publicUsernameOrBotLink': {
const choose = parseChooseParameter(parsedLink.choose);

Expand Down

0 comments on commit 8eb1f88

Please sign in to comment.