feat: deleted user

This commit is contained in:
Tristan Yang
2022-08-23 17:26:37 +08:00
parent a27b537666
commit 22e6f6cdcc
8 changed files with 634 additions and 503 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ const Message: FC<IProps> = ({
}, [mid, read]);
const reactions = reactionMessageData[mid];
const currUser = usersData[fromUid];
const currUser = usersData[fromUid || 0];
// if (!message) return null;
let timePrefix = null;
const dayjsTime = dayjs(time);
@@ -121,7 +121,7 @@ const Message: FC<IProps> = ({
}`}
>
<div className="up">
<span className="name">{currUser?.name}</span>
<span className="name">{currUser?.name || "Deleted User"}</span>
<Tooltip
delay={200}
disabled={!timePrefix || readOnly}