* Avoid throwing when purging
* Update app/store/index.ts
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
* MM-25946 prompt sys admins if they are running server versions below 5.19
* Update alert message
* Change alert buttons
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Fix map call on Set
* Ensure we don't destructure non-iterable values
* Include error message and stack in Alert
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
* Dispatch REHYDRATED if already hydrated after getStoredState call
* Empty/null prev version is valid
* Update iOS target to 11.0
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
* MM-25820 prevent double tap in post options
* Fix weird behavior on iOS when doble tapping on add reaction and edit in post options
* Callback after close
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* MM-21368 Notify user when editing message that's too long
* Disable 'Save' button to prevent edits from being posted
* Display error message specific to the message size and allows max, instead of the current, default "Invalid Message" error.
* Split message length error into text (left justified) and counts (right justified)
UX guidance from PR review
* UX Review: Wrap for longer error text + spacing adjustment
* UX Review: Align split messages to top + add spacing in-between
* UX Review: Align error message box padding with content
Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
Currently, at-mention and search autocomplete do not render if there is a server request or network problem/outage, because the only data used to populate autocomplete results is a server request.
Now, these autocompletes will render initially with user data currently in store, and then re-rendered in place, once the server response completes.
Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
* Animate top bar height/padding
* Update import order
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
Picking a new date string (tapping a date on the autocomplete calendar) to replace an already populated date string in the search bar, leaves the search text garbled. This was because of incorrect handling of the tap cursor position in the search box.
Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
* MM-24501 Load all (joinable) teams when resetting app state
The subsequent `loadMe` only fetches a user's already-joined teams, which doesn't populate `state.entities.teams.teams` with the entire set of teams available, including potentially joinable teams.
Fixes https://github.com/mattermost/mattermost-mobile/issues/4209
* Add names to batched team action groups
Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
* Fix SSO and clear cookies
* Fix unit tests
* Removed unnecessary argument
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
* Handle SSO redirecting to a different URL than specified by the user
* Set Server URL based on the last redirect
* Improve last redirect condition
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
* Allow interaction when the in-app notification is shown
* Wrap in gesture HOC only for Android
* Set height and remove flex for android in-app notifications gesture hoc
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
* Fix infinite skeleton in different use cases
* Apply suggestions from code review
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>
* Update app/utils/teams.js
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Miguel Alatzar <migbot@users.noreply.github.com>