Fix makeDirectChannel action (#685)
This commit is contained in:
parent
7026ea4bec
commit
1b58bec9c4
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ export function makeDirectChannel(otherUserId) {
|
|||
return true;
|
||||
}
|
||||
const created = await createDirectChannel(currentUserId, otherUserId)(dispatch, getState);
|
||||
if (created) {
|
||||
handleSelectChannel(created.id)(dispatch, getState);
|
||||
if (created.data) {
|
||||
handleSelectChannel(created.data.id)(dispatch, getState);
|
||||
}
|
||||
|
||||
return created;
|
||||
|
|
|
|||
Loading…
Reference in a new issue