Repository: mattermost/mattermost

Issue #8372: Mobile - iOS: Edit Channel Name does not display updated name until channel is reselected
Created: 2018-02-27T05:49:50Z
Summary
When editing a Channel's Name, on iOS (App Version 1.7.0 Build 87), the name change is registered at the top of the start of the channel -- "Beginning of [channelName]" and "This is the start of the [channelName] channel...".  The change is not updated in the Channel Name Bar at the top of the screen, until the channel drawer is opened and the channel is reselected.
Steps to reproduce

Login on iOS, with App Version 1.7.0 Build 87
Select a channel
Select the channel's name, from the blue Channel Name Bar at the top of the screen
Select "Edit Channel"
Edit the Channel Name
Select "Save"
Verify a system message appears in the channel, indicating the name change
Scroll to the beginning/start of the channel, if it is not a new channel and note the text "Beginning of [name] has been updated, as well as the info text underneath, "This is the start of the [name] channel..."
Note the channel's name, at the blue Channel Name Bar at the top of the screen has not updated
Open the Channel Drawer (select hamburger menu or swipe right)
Reselect channel (with the updated name)

Expected behavior
When a Channel Name is edited, the change should update in all Channel Name locations, especially the Channel Name Bar.
Observed behavior (that appears unintentional)
When the Channel Name is edited, the blue Channel Name Bar at the top of the screen does not update until the channel is re-opened.
Possible fixes
If you can, link to the line of code that might be responsible for the problem

Duplicate issue #8375: Mobile - iOS: Preview is broken - 'Unexpected error occurred' and forces Relaunch of app
Created: 2018-02-27T06:52:35Z
Summary
When tapping an JPG image, to preview, the app returns an "Unexpected error occurred" message and forces the user to select "Relaunch".
The following message and stack trace were recorded when attempting to preview a jpg:
Message:
n.refs.toolTip.hideMenu is not a function. (In 'n.refs.toolTip.hideMenu()', 'n.refs.toolTip.hideMenu' is undefined)
Stack trace:
hide@/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] 
Steps to reproduce

Login on iOS (App Version 1.7.0 Build 87)
From any channel with a jpg, gif, mp4, mov, or doc tap the file to preview
Observe error message

Expected behavior
Tapping an approved file type (see https://mattermost.atlassian.net/browse/RN-15 for reference), will display a preview of the file.
Observed behavior (that appears unintentional)
Tapping any file to preview returns "Unexpected error occurred" and requires the user to "Relaunch".

Closing comment (2018-02-28T08:52:36Z): (Similar to #8372)
Sounds like you might want to report an issue with mattermost-mobile.