-
+
{user.firstName} {user.lastName}
@@ -245,11 +253,19 @@ export default function LBMessaging() {
const renderChatMessages = () => {
if (messagesLoading) {
- return
Loading messages...
;
+ return (
+
+ Loading messages...
+
+ );
}
if (messages.length === 0) {
- return
No messages to display.
;
+ return (
+
+ No messages to display.
+
+ );
}
const filteredMessages = messages.filter(
@@ -259,7 +275,11 @@ export default function LBMessaging() {
);
if (filteredMessages.length === 0) {
- return
No messages to display.
;
+ return (
+
+ No messages to display.
+
+ );
}
return (
@@ -272,7 +292,7 @@ export default function LBMessaging() {
message.sender === auth.userid ? styles.sent : styles.received
}`}
>
-
+
{message.content.split('\n').map(line => (
{line}
@@ -289,12 +309,16 @@ export default function LBMessaging() {
return (
users.userProfilesBasicInfo.length !== 0 && (
-
-
+
+
-
-
+
+
{mobileView && (
@@ -309,11 +333,17 @@ export default function LBMessaging() {
{showContacts ? (
-
+
) : (
-
-
Messages
+
+
+ Messages
+
setShowContacts(prev => !prev)}
/>
)}
{showContacts
? searchResults.map(user => (
)}
-
+
{/* Contacts Section */}
{!mobileView && (
{showContacts ? (
-
+
) : (
-
-
Messages
+
+
+ Messages
+
setShowContacts(prev => !prev)}
/>
)}
{showContacts
? searchResults.map(user => (