Commit graph

1871 commits

Author SHA1 Message Date
Mattermost Build
ae65a4af6f
MM-13076 Start with store results for at-mention/search autocomplete (#4444)
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>
2020-06-17 21:26:13 -04:00
Mattermost Build
0cd123aecc
MM-25695 Select channel when switching teams if available (#4443)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-17 21:25:59 -04:00
Mattermost Build
311c107f54
Automated cherry pick of #4370 (#4442)
* 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>
2020-06-17 21:25:44 -04:00
Mattermost Build
cf3ff99cd8
MM-24029 Fix date re-selection on search bar (#4441)
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>
2020-06-17 21:25:29 -04:00
Mattermost Build
56806a9d9f
Fix sidebar search bar (#4440)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-06-17 21:21:34 -04:00
Mattermost Build
916d93daab
MM-24201 List joinable teams alphabetically (#4439)
Matches webapp behaviour.

Co-authored-by: Amit Uttam <changingrainbows@gmail.com>
2020-06-17 21:21:18 -04:00
Mattermost Build
817d1792ce
Automated cherry pick of #4362 (#4438)
* 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>
2020-06-17 21:21:03 -04:00
Mattermost Build
240ad3857c
Automated cherry pick of #4354 (#4437)
* Remove border to login option buttons

* Remove email login option color for O365

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-17 21:20:47 -04:00
Mattermost Build
5c54186c8d
MM-24895 fetch roles if needed and add team member to the store when joining a new team (#4436)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-17 21:20:25 -04:00
Mattermost Build
dc0133bf01
MM-24964 select server url correctly animate error with keyboard (#4435)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-17 21:19:19 -04:00
Mattermost Build
8e858c76b5
MM-24932 Bold LHS active channel manually marked as unread (#4434)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-17 21:17:48 -04:00
Mattermost Build
aab0814b7f
Automated cherry pick of #4422 (#4424)
* 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>
2020-06-15 14:06:53 -04:00
Mattermost Build
514e9cfd08
Automated cherry pick of #4418 (#4419)
* Wrap await calls in try/catch

* Fix spacing

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-06-12 13:15:35 -07:00
Mattermost Build
e6547d7dc1
MM-25967 await until cookies are cleared (#4413)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-11 15:13:21 -04:00
Mattermost Build
bc25a29c42
MM-25782 improve channel member reducer speed to sync memberships (#4402)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-09 14:39:48 -04:00
Mattermost Build
c3fc53a071
Removed unnecessary trim (#4399)
Co-authored-by: marianunez <maria.nunez@mattermost.com>
2020-06-08 21:43:40 -04:00
Mattermost Build
34af598a6d
clear cookies on again trying to login (#4395)
Co-authored-by: Harshit Khetan <khetanmehul@gmail.com>
2020-06-08 15:27:14 -04:00
Mattermost Build
ff89f3530e
Ensure previous state is cleared when logout (#4396)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-08 15:26:53 -04:00
Mattermost Build
8a95000bd0
MM-25831 Fix timing issue with cancelPing (#4394)
With `getUrl` recently [becoming async](https://github.com/mattermost/mattermost-mobile/commit/293470ff#diff-60b06b1c4aab028b96d9b207e84000c6R316), the global definition of the cancelPing function wasn't being made available in time for use by other functions (e.g. `handleSslProblem` and `handleConnect`)
2020-06-08 14:24:16 -03:00
Mattermost Build
97d393a2ba
MM-25694 Disallow profile picture update is set by LDAP (#4379)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-06-02 12:11:53 -04:00
Mattermost Build
fb03a88304
Automated cherry pick of #4372 (#4376)
* 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>
2020-06-01 16:22:28 -04:00
Mattermost Build
526290bbdf
MM-25562 Fix dismiss reaction list crash (#4363)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-05-27 14:17:22 -04:00
Mattermost Build
962b38d024
Bump upload timeout to 1 min (#4359)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-05-27 13:02:44 -04:00
Mattermost Build
51109c74d3
Invalidate versions for iOS (#4356)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-05-27 12:44:20 -04:00
Mattermost Build
098230e79e
Automated cherry pick of #4344 (#4348)
* Fix emoji autocomplete results

* Rename selectors with "select" prefix

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-05-27 07:42:23 -04:00
Mattermost Build
8fa67bd5b4
Automated cherry pick of #4346 (#4351)
* MM-25510 Increase post options long press delay to 250ms

* Set delay to 200ms

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-05-26 20:17:52 -04:00
Mattermost Build
37479587cc
Add calls to Client4.savePreferences (#4347)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-05-26 10:00:41 -07:00
Mattermost Build
3708b86b30
MM-25434 Fix switch team badge cut off (#4339)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-05-22 10:57:38 -07:00
Mattermost Build
4abb483f2c
Apply background style for Android as well (#4329)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-05-22 11:49:50 -04:00
Mattermost Build
7a0bf1dc77
Update control icon style (#4328)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-05-22 11:49:37 -04:00
Mattermost Build
6cf1140a0f
Incrase redux-persist timeout to 1 min (#4324)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-05-21 14:24:19 -07:00
Mattermost Build
67eea1750d
Fix overflow of searchbar for iOS in Landscape (#4316)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-05-21 11:01:19 -04:00
Mattermost Build
d4e405485b
Do not preload images with FastImage (#4315)
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2020-05-20 16:17:49 -04:00
Mattermost Build
1389e4f7f7
Handle MFA error in MFA screen (#4313)
Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
2020-05-20 08:37:01 -07:00
Mattermost Build
6b7cffd6af
Automated cherry pick of #4295 (#4307)
* 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>
2020-05-19 16:09:33 -07:00
Mattermost Build
dba3278c9f
Automated cherry pick of #4304 (#4306)
* 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>
2020-05-19 16:08:58 -07:00
Elias Nahum
c04c1f26f7
Do not schedule session expiry notification for 5.24+ (#4291) 2020-05-19 12:15:45 -04:00
Miguel Alatzar
a819cce708
[MM-24642] Sidebar fixes (#4286)
* Fixes to height and padding

* Add underlayColor

* Rename to index

* Revert height change for overflow change

* Increase toValue

* Update Android offset
2020-05-18 16:31:11 -07:00
Elias Nahum
d3a6e166ad
MM-15758 Update dependencies including Fastlane (#4272)
* Update dependencies including Fastlane and disable Flipper on iOS

* Remove EventEmitter for previous doc-viewer

* Fix android crash when setting more channels buttons

* Downgrade fuse.js

* Upgrade deps to latest

* Update Podfile.lock

* Downgrade RNN to 6.4.0

* QA Review #2

* Upgrade fuse.js to 6.0.0
2020-05-18 11:24:47 -07:00
Andre Vasconcelos
a0841e0ef1
MM-24497 Ensuring quick reactions render within safe area (#4235)
* Ensuring quick reactions render within safe area

* Added modifier to align paddings

* Updating snapshots
2020-05-14 22:10:15 -04:00
Elias Nahum
c0a763e9e0
Set previous app version on persist store migration (#4294) 2020-05-13 19:24:44 -03:00
Elias Nahum
1ae5584cb1
MM-24115 Use Native + BuiltIn emojis instead of systemEmojis (#4274)
* MM-24115 Use BuiltInEmojis instead of systemEmojis

* Address QA found issues
2020-05-13 18:23:47 -04:00
Elias Nahum
36e55c95a2
MM-23570 Migrate from Segment to Rudder (#4293)
* Replace Segment with Rudder (ios not working)

* Update @assets reference and fix tests
2020-05-13 16:54:07 -04:00
Elias Nahum
e50fa1d85b
MM-24973 Prevent search input to take full screen on Android landscape (#4283) 2020-05-13 10:12:53 -04:00
Jesús Espino
6b6a685909
Using new getKnownUsers api to cleanup the users on leave channel (#4220)
* Using new getKnownUsers api to cleanup the users on leave channel

* Fixing tests

* Addressing PR comments

* Removing unnused variables

* Fixing proptypes annotation

* Addressing PR review comments

* Fixing minimun version check

* Changing the import to use

* Adding tests for version check

* Addressing PR review comments

* Small change to no change accidentaly the previous behavior

* Adding small fix proposed by Elias
2020-05-11 13:19:38 -03:00
Miguel Alatzar
94bdd8e430
Ensure currentChannel set (#4288) 2020-05-11 12:12:01 -03:00
Amit Uttam
ee5d336190
[MM-18642] Notify on server certificate trust problems when connecting (#4282)
* MM-18642 Notify user on server certificate trust problems

Presents a new alert specific to SSL connection/certificate trouble on the server, when pinging.

* Change Alert title (PR review)
2020-05-08 19:58:43 -07:00
Farhan Munshi
901f31ec4b
[MM-24891] [MM-24572] Add ability to specify default value when role not found for selector (#4277)
* MM-24891 Allow permissions to have defaults set in case where roles not in state

* MM-24891 Add tests for haveIPermission

* MM-24891 Apply the defaults to more channel permission checks
2020-05-08 14:19:33 -04:00
Miguel Alatzar
879e604bbf
Ensure receivedPosts runs first (#4281) 2020-05-08 08:08:22 -07:00
Amit Uttam
42f93769b1
Revert "MM-24113 Support 'leave' slash command (#4273)" (#4279)
This reverts commit fd450f9988.
2020-05-07 14:40:54 -03:00