Skip to content

Commit

Permalink
fix(ui): pop to top when delete conversation
Browse files Browse the repository at this point in the history
Signed-off-by: Godefroy Ponsinet <godefroy.ponsinet@outlook.com>
  • Loading branch information
90dy committed Aug 28, 2019
1 parent 6807b79 commit 2e07e07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/packages/screen/Chats/Settings/List.js
Expand Up @@ -78,10 +78,14 @@ export class SettingsScreen extends PureComponent {
const { id } = conversation
try {
await context.node.service.conversationRemove({ id })
this.props.goBack()
} catch (err) {
console.error(err)
if (this.props.context.entity.conversation.has(id)) {
return
}
}
this.props.goBack()
this.props.navigation.popToTop()
}

render() {
Expand Down

0 comments on commit 2e07e07

Please sign in to comment.