forked from Ivasoft/mattermost-mobile
* Fix in-app notification crashing when receiving multiple * Dismiss the overlay when tap without waiting for interaction manager Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
@@ -347,7 +347,6 @@ export function showOverlay(name, passProps, options = {}) {
|
||||
|
||||
Navigation.showOverlay({
|
||||
component: {
|
||||
id: name,
|
||||
name,
|
||||
passProps,
|
||||
options: merge(defaultOptions, options),
|
||||
|
||||
@@ -440,7 +440,6 @@ describe('app/actions/navigation', () => {
|
||||
|
||||
const expectedLayout = {
|
||||
component: {
|
||||
id: name,
|
||||
name,
|
||||
passProps,
|
||||
options: merge(defaultOptions, options),
|
||||
|
||||
@@ -145,8 +145,8 @@ export default class Notification extends PureComponent {
|
||||
|
||||
EventEmitter.emit(NavigationTypes.CLOSE_MAIN_SIDEABR);
|
||||
EventEmitter.emit(NavigationTypes.CLOSE_SETTINGS_SIDEBAR);
|
||||
this.dismissOverlay();
|
||||
InteractionManager.runAfterInteractions(() => {
|
||||
this.dismissOverlay();
|
||||
if (!notification.localNotification) {
|
||||
actions.loadFromPushNotification(notification);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user