diff --git a/packages/web/components/Conversations/LiveRoom.tsx b/packages/web/components/Conversations/LiveRoom.tsx index 58676ca..2077d6a 100644 --- a/packages/web/components/Conversations/LiveRoom.tsx +++ b/packages/web/components/Conversations/LiveRoom.tsx @@ -1,5 +1,5 @@ import Conversation from "@nirvana/common/models/conversation"; -import { Avatar } from "antd"; +import { Avatar, Tooltip } from "antd"; import { FaWalking } from "react-icons/fa"; import { MasterAvatarGroupWithUserFetch } from "../UserDetails/MasterAvatarGroup"; @@ -13,16 +13,18 @@ export default function LiveRoom(props: { conversation: Conversation }) { Engineering - + {"01:20"} - + - - + > + + + ); } diff --git a/packages/web/components/Conversations/PriorityConvoRow.tsx b/packages/web/components/Conversations/PriorityConvoRow.tsx index 41d0d71..cfde0e5 100644 --- a/packages/web/components/Conversations/PriorityConvoRow.tsx +++ b/packages/web/components/Conversations/PriorityConvoRow.tsx @@ -1,6 +1,9 @@ import { Avatar } from "antd"; import { useRecoilValue } from "recoil"; -import { selectedPriorityConvoAtom } from "../../recoil/main"; +import { + checkIncomingMessageSelector, + selectedPriorityConvoAtom, +} from "../../recoil/main"; import Conversation from "../../../common/models/conversation"; import { MasterAvatarGroupWithUserFetch } from "../UserDetails/MasterAvatarGroup"; import moment from "moment"; @@ -15,7 +18,9 @@ export default function PriorityConvoRow(props: { const isSelected = selectedConvo == props.conversation.id ? true : false; // who was the last sender based on the lastInteractionDate etc. - const myTurn = false; + const isNewIncoming = useRecoilValue( + checkIncomingMessageSelector(props.conversation.id) + ); // todo: implement method in conversation // const isOneonOne = diff --git a/packages/web/components/MainTabsOrPages/Conversations.tsx b/packages/web/components/MainTabsOrPages/Conversations.tsx index ba61eec..5467403 100644 --- a/packages/web/components/MainTabsOrPages/Conversations.tsx +++ b/packages/web/components/MainTabsOrPages/Conversations.tsx @@ -64,7 +64,7 @@ export default function Conversations() { {/* row of live room cards */} - + {liveRooms.map((lRoom) => ( ))}