Timothy Jaeryang Baek 1 mês atrás
pai
commit
7ede54ee0a

+ 1 - 1
src/lib/components/channel/MessageInput.svelte

@@ -118,7 +118,7 @@
 			text = text.replaceAll('{{USER_LOCATION}}', String(location));
 		}
 
-		const sessionUser = getSessionUser(localStorage.token);
+		const sessionUser = await getSessionUser(localStorage.token);
 
 		if (text.includes('{{USER_NAME}}')) {
 			const name = sessionUser?.name || 'User';

+ 1 - 1
src/lib/components/chat/MessageInput.svelte

@@ -178,7 +178,7 @@
 			text = text.replaceAll('{{USER_LOCATION}}', String(location));
 		}
 
-		const sessionUser = getSessionUser(localStorage.token);
+		const sessionUser = await getSessionUser(localStorage.token);
 
 		if (text.includes('{{USER_NAME}}')) {
 			const name = sessionUser?.name || 'User';