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