|
|
|
@ -142,7 +142,7 @@ export function submitCompose(routerHistory) { |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
if (response.data.visibility === 'direct' && getState().getIn(['conversations', 'mounted']) <= 0) { |
|
|
|
|
if (response.data.visibility === 'direct' && getState().getIn(['conversations', 'mounted']) <= 0 && routerHistory) { |
|
|
|
|
routerHistory.push('/timelines/direct'); |
|
|
|
|
} else if (response.data.visibility !== 'direct') { |
|
|
|
|
insertIfOnline('home'); |
|
|
|
|