We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4f4e01 commit f812dcfCopy full SHA for f812dcf
frontend/src/app/collaboration/components/question.tsx
@@ -63,11 +63,12 @@ const Question = ({
63
console.log(question);
64
65
const packageMessage = (message: SingleChatLogApiResponse): ChatLog => {
66
+ const userId = getUserId();
67
return {
68
text: message.message,
- title: collaborator,
69
+ title: message.senderId === userId ? username : collaborator,
70
date: new Date(message.timestamp),
- position: message.senderId === getUserId() ? "right" : "left",
71
+ position: message.senderId === userId ? "right" : "left",
72
type: "text",
73
};
74
0 commit comments