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

Change Home Page to Chat (w/o creating new chat) #417

Open
Lucas-almma opened this issue Aug 29, 2024 · 1 comment
Open

Change Home Page to Chat (w/o creating new chat) #417

Lucas-almma opened this issue Aug 29, 2024 · 1 comment

Comments

@Lucas-almma
Copy link

Has anybody attempted to launch on the chat page? Or use the chat page as the landing page, instead of the default?

Is it possible to do so without automatically creating a new chat?

@fsch-ppi
Copy link

fsch-ppi commented Sep 24, 2024

@Lucas-almma
You mean launching on the last chat of the user?
You could just write a little java-script function for that:

In chat-thread-service.ts there is a function "FindAllChatThreadForCurrentUser" -> which gives you back all chats in order. You could then just take the most recent and parse together an url:

Get the id from the ChatThread e.g:
g8YGfU3uqKWPAni1EXwjg3as3gy1HPiC5HeS

and then foreward the user to
localhost:300/chat/g8YGfU3uqKWPAni1EXwjg3as3gy1HPiC5HeS

This does the trick (changing /src/features/auth-page/helpers.ts:
image

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

No branches or pull requests

2 participants