Changes to match other timelines in 2.0

This commit is contained in:
Matthew Walsh
2017-10-22 18:45:35 -07:00
parent 3db80f75a6
commit a76b024228
3 changed files with 9 additions and 1 deletions

View File

@ -8,6 +8,7 @@ import {
refreshHomeTimeline,
refreshCommunityTimeline,
refreshPublicTimeline,
refreshDirectTimeline,
} from './timelines';
export const COMPOSE_CHANGE = 'COMPOSE_CHANGE';
@ -129,7 +130,7 @@ export function submitCompose() {
insertOrRefresh('community', refreshCommunityTimeline);
insertOrRefresh('public', refreshPublicTimeline);
} else if (response.data.visibility === 'direct') {
dispatch(updateTimeline('direct', { ...response.data }));
insertOrRefresh('direct', refreshDirectTimeline);
}
}).catch(function (error) {
dispatch(submitComposeFail(error));