Try again to fix DM issue
parent
430cbe676c
commit
b52edce516
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "chat",
|
||||
"version": "0.1.19",
|
||||
"version": "0.1.20",
|
||||
"main": "./src/index.tsx",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -90,7 +90,7 @@ export function ChatMessage({
|
|||
|
||||
if (userToDm && userToDm.id === userId) {
|
||||
updateUserToDm(null);
|
||||
} else {
|
||||
} else if (userId) {
|
||||
updateUserToDm({
|
||||
id: userId,
|
||||
username: message.username,
|
||||
|
@ -134,7 +134,7 @@ export function ChatMessage({
|
|||
style={{
|
||||
position: "relative",
|
||||
top: 2,
|
||||
left: -12
|
||||
left: -12,
|
||||
}}
|
||||
onClick={() => handleDirectMessage()}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue