Divide Conversation into ConversationInfos, ConversationMember, and ConversationSummary
- ConversationSummary is used to display ConversationList.
- Having the three separated will help managing queries.
- Adding ConversationSummary required to solve some inconsistencies in ConversationList, which was mixing contacts and conversations. ContactSearchResultList has been added as a quick fix . It will need more work.
- Some tools to uniformize conversation names have been introduced. They will need more work.
Note the diplaying of ConversationList is left broken in this commit.
Change-Id: I29337906cc43781a9c4790735490a6ee2cc51cb0
diff --git a/client/src/pages/CallInterface.tsx b/client/src/pages/CallInterface.tsx
index 52b970f..b535b25 100644
--- a/client/src/pages/CallInterface.tsx
+++ b/client/src/pages/CallInterface.tsx
@@ -170,9 +170,8 @@
const CallInterfaceInformation = () => {
const { callStartTime } = useCallContext();
- const { conversation } = useConversationContext();
+ const { conversationDisplayName } = useConversationContext();
const [elapsedTime, setElapsedTime] = useState(callStartTime ? (Date.now() - callStartTime) / 1000 : 0);
- const memberName = useMemo(() => conversation.getFirstMember().contact.registeredName, [conversation]);
useEffect(() => {
if (callStartTime) {
@@ -188,7 +187,7 @@
return (
<Stack direction="row" justifyContent="space-between" alignItems="center">
<Typography color="white" component="p">
- {memberName}
+ {conversationDisplayName}
</Typography>
<Typography color="white" component="p">
{elapsedTimerString}