forked from Ivasoft/mattermost-mobile
Do not show tutorial if screen is closed (#6401)
This commit is contained in:
@@ -139,8 +139,10 @@ export default function UserListRow({
|
||||
endX: x + w + 20,
|
||||
endY: y + h,
|
||||
};
|
||||
setShowTutorial(true);
|
||||
setItemBounds(bounds);
|
||||
if (viewRef.current) {
|
||||
setShowTutorial(true);
|
||||
setItemBounds(bounds);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -202,8 +202,11 @@ const ServerItem = ({
|
||||
endX: x + w + 20,
|
||||
endY: y + h,
|
||||
};
|
||||
setShowTutorial(true);
|
||||
setItemBounds(bounds);
|
||||
|
||||
if (viewRef.current) {
|
||||
setShowTutorial(true);
|
||||
setItemBounds(bounds);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user