forked from mystiq/hydrogen-web
don't set dmUserId when not a DM
This commit is contained in:
parent
7defd4a02b
commit
45837f7377
1 changed files with 5 additions and 4 deletions
|
@ -183,10 +183,11 @@ function applyInvite(data, invite) {
|
|||
if (data.isDirectMessage !== invite.isDirectMessage) {
|
||||
data = data.cloneIfNeeded();
|
||||
data.isDirectMessage = invite.isDirectMessage;
|
||||
}
|
||||
if (data.dmUserId !== invite.inviter?.userId) {
|
||||
data = data.cloneIfNeeded();
|
||||
data.dmUserId = invite.inviter?.userId;
|
||||
if (invite.isDirectMessage) {
|
||||
data.dmUserId = invite.inviter?.userId;
|
||||
} else {
|
||||
data.dmUserId = null;
|
||||
}
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue