File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11let db = firebase . firestore ( ) ;
22let auth = firebase . auth ( ) ;
33
4+ // TODO: transition from account.html recent contacts to chat.html not working;
5+ function prepareChat ( ) {
6+ const userID = getQueryParam ( 'action' ) ;
7+ if ( userID ) {
8+ handleSwitchChat ( userID ) ;
9+ switchUserChat ( userID ) ;
10+ }
11+ }
12+
413document . addEventListener ( 'DOMContentLoaded' , function ( ) {
514 const auth = firebase . auth ( ) ;
615 const db = firebase . firestore ( ) ;
Original file line number Diff line number Diff line change 4141 < script src ="assets/js/firebase_init.js "> </ script >
4242</ head >
4343
44- < body class ="bg-gray-100 ">
44+ < body class ="bg-gray-100 " onload =" prepareChat() " >
4545 < div class ="container mx-auto p-4 ">
4646 < div class ="flex justify-between items-center border-b-2 border-black pb-2 ">
4747 < div class ="flex space-x-4 ">
You can’t perform that action at this time.
0 commit comments