+
-
- {`읽지 않은 메시지 ${room.unreadCount}개`}
+
+ {room.unreadCount > 300 ? '300+' : room.unreadCount}
+
)}
@@ -193,30 +196,31 @@ function ChatListPage() {
}
return (
-
- {rooms.map((room, index) => {
- const shouldRenderAdvertisement =
- chatRoomSlotsPerAdvertisement !== null && (index + 1) % chatRoomSlotsPerAdvertisement === 0;
- const advertisement = shouldRenderAdvertisement
- ? advertisements[Math.floor(index / chatRoomSlotsPerAdvertisement)]
- : undefined;
-
- return (
-
-
- {advertisement && (
-
- )}
- {!advertisement && shouldRenderAdvertisement && isLoadingAdvertisements && (
-
- )}
-
- );
- })}
-
+
+
+ {rooms.map((room, index) => {
+ const shouldRenderAdvertisement =
+ chatRoomSlotsPerAdvertisement !== null && (index + 1) % chatRoomSlotsPerAdvertisement === 0;
+ const advertisement = shouldRenderAdvertisement
+ ? advertisements[Math.floor(index / chatRoomSlotsPerAdvertisement)]
+ : undefined;
+
+ return (
+
+
+ {advertisement && (
+
+ )}
+ {!advertisement && shouldRenderAdvertisement && isLoadingAdvertisements && (
+
+ )}
+
+ );
+ })}
+
);
}