From 92e7adc852c571bdeead83e28c7ab326b93b681c Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Thu, 2 Jul 2020 11:59:14 -0400 Subject: [PATCH] MM-26638 MM-26656 await when dismissing post options modal (#4518) --- app/screens/post_options/post_options.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/screens/post_options/post_options.js b/app/screens/post_options/post_options.js index 9339322e6..004b6cc7f 100644 --- a/app/screens/post_options/post_options.js +++ b/app/screens/post_options/post_options.js @@ -56,7 +56,7 @@ export default class PostOptions extends PureComponent { }; close = async (cb) => { - dismissModal(); + await dismissModal(); if (typeof cb === 'function') { requestAnimationFrame(cb); @@ -260,7 +260,7 @@ export default class PostOptions extends PureComponent { onEmojiPress: this.handleAddReactionToPost, }; - this.close(() => showModal(screen, title, passProps)); + this.closeWithAnimation(() => showModal(screen, title, passProps)); }); }; @@ -362,7 +362,7 @@ export default class PostOptions extends PureComponent { closeButton: source, }; - this.close(() => showModal(screen, title, passProps)); + this.closeWithAnimation(() => showModal(screen, title, passProps)); }); };