{"action":"opened","issue":{"url":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/1473","repository_url":"https://api.github.com/repos/mattermost/mattermost-mobile","labels_url":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/1473/labels{/name}","comments_url":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/1473/comments","events_url":"https://api.github.com/repos/mattermost/mattermost-mobile/issues/1473/events","html_url":"https://github.com/mattermost/mattermost-mobile/issues/1473","id":301134750,"number":1473,"title":"Mobile - iOS: Preview is broken - 'Unexpected error occurred' and forces Relaunch of app ","user":{"login":"mattrampolla","id":17954664,"avatar_url":"https://avatars0.githubusercontent.com/u/17954664?v=4","gravatar_id":"","url":"https://api.github.com/users/mattrampolla","html_url":"https://github.com/mattrampolla","followers_url":"https://api.github.com/users/mattrampolla/followers","following_url":"https://api.github.com/users/mattrampolla/following{/other_user}","gists_url":"https://api.github.com/users/mattrampolla/gists{/gist_id}","starred_url":"https://api.github.com/users/mattrampolla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattrampolla/subscriptions","organizations_url":"https://api.github.com/users/mattrampolla/orgs","repos_url":"https://api.github.com/users/mattrampolla/repos","events_url":"https://api.github.com/users/mattrampolla/events{/privacy}","received_events_url":"https://api.github.com/users/mattrampolla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-28T18:34:33Z","updated_at":"2018-02-28T18:34:33Z","closed_at":null,"author_association":"NONE","body":"#### Summary\r\nWhen tapping an JPG image, to preview, the app returns an \"Unexpected error occurred\" message and forces the user to select \"Relaunch\".\r\n\r\n#### Environment Information\r\n\r\n- Device Name: iPhone 6s Plus\r\n- OS Version: 11.2.5\r\n- Mattermost App Version: 1.7.0 (Build 87)\r\n- Mattermost Server Version: 4.7.1 (4.8.0-rc1)\r\n\r\n#### Steps to reproduce\r\n\r\n1. Login on iOS (App Version 1.7.0 Build 87)\r\n2. From any channel with a jpg, gif, mp4, mov, or doc tap the file to preview\r\n3. Observe error message\r\n\r\n#### Expected behavior\r\nTapping an approved file type (see https://mattermost.atlassian.net/browse/RN-15 for reference), will display a preview of the file.\r\n\r\n#### Observed behavior\r\nTapping any file to preview returns \"Unexpected error occurred\" and requires the user to \"Relaunch\".\r\n\r\n#### Possible fixes\r\nThe following message and stack trace were recorded when attempting to preview a jpg:\r\nMessage:\r\nn.refs.toolTip.hideMenu is not a function. (In 'n.refs.toolTip.hideMenu()', 'n.refs.toolTip.hideMenu' is undefined)\r\n\r\nStack trace:\r\nhide@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:1408:777 hideOptionsContext@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:1334:1042 handlePreviewPress@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:1337:967 handlePreviewPress@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:1338:726 touchableHandlePress@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:173:1177 touchableHandlePress@[native code] _performSideEffectsForTransition@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:165:8280 _performSideEffectsForTransition@[native code] _receiveSignal@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:165:7067 _receiveSignal@[native code] touchableHandleResponderRelease@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:165:4740 touchableHandleResponderRelease@[native code] y@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:46:1204 invokeGuardedCallback@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:46:467 invokeGuardedCallbackAndCatchFirstError@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:46:582 H@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:46:2563 D@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:46:3325 forEach@[native code] F@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:46:3122 Ne@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:46:14270 /var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:46:14828 batchedUpdates@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:46:60045 _e@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:46:14043 He@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:46:14814 receiveTouches@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:46:15357 value@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:18:3471 /var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:18:956 value@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:18:2898 value@/var/containers/Bundle/Application/6271716B-BEB6-43ED-9F55-8841C9CF72B8/Mattermost.app/main.jsbundle:18:928 value@[native code]"}}
{"actor":{"display_login":"mattrampolla"}}