Commit graph

1357 commits

Author SHA1 Message Date
Mattermost Build
361528de86 Check initialIndex in callback (#3065) 2019-08-01 08:40:44 -07:00
Miguel Alatzar
f117281bec
Call scrollToIndex only if flatListRef.current is not null (#3022) 2019-07-31 19:33:40 -04:00
Miguel Alatzar
cb912bb175 Dispatch setDeviceToken after hydration (#3056) 2019-07-31 09:26:39 -04:00
Elias Nahum
339ff1ae8f Fix assigning credentials during app init (#3034)
* Fix assigning credentials during app init

* remove setAppCredentials in entry screen
2019-07-25 08:12:32 -04:00
Mattermost Build
f8808b0eaf MM-16829 Fix for sso with server subpaths (#2991) 2019-07-19 00:04:48 +05:30
Miguel Alatzar
b98812f84f [MM-17016] Ensure Flatlist is mounted prior to calling scrollToIndex (#2977)
* Ensure Flatlist is mounted prior to calling scrollToIndex

* Address review comment
2019-07-16 21:09:33 +08:00
Elias Nahum
955cf47921 MM-16857 Fix long posts (#2967) 2019-07-09 11:56:12 -04:00
Saturnino Abril
54530f28a2 fix app chrashing when sending invalid slash command (#2966) 2019-07-09 22:12:31 +08:00
Elias Nahum
c56cd566d2 MM-16823 Fix "Freeze" after deleting cache (#2956) 2019-07-08 09:23:49 -04:00
Jesse Hallam
954868f572
MM-16442: count actual reactions before falling back to has_reactions (#2910)
* MM-16442: leverage post hasReactions utils function

This handles backwards compatibility with servers that do not have post
metadata, allowing the client to detect the presence of reactions that
in turn might need to be loaded when the component is mounted.

* temporary mattermost-redux commit for testing

* revert usage of hasReactions, and count directly

We still fallback to has_reactions if set, in case we're connected to a server without post metadata.

* revert mattermost-redux changes
2019-07-06 03:46:51 -04:00
Elias Nahum
dd28c38196
Place the new message indicator at the top of the screen (#2943)
* Place the new message indicator at the top of the screen

* Add unit tests for channel postVisibility reducer
2019-07-02 12:28:55 -04:00
Elias Nahum
e7a2f4d6b1 Fix AD/LDAP & SAML profile sync properties (#2941) 2019-07-02 10:11:31 -04:00
Miguel Alatzar
f338279444 [MM-16456] Ensure Flatlist is mounted prior to calling scrollToOffset (#2925)
* Ensure Flatlist is mounted prior to calling scrollToOffset

* Make linter happy
2019-06-26 17:02:40 +08:00
Elias Nahum
8ad2456d5e MM-16463 Fix replying from push notification to a message in a thread (#2927) 2019-06-26 17:00:50 +08:00
Harrison Healey
2fdb9ce35e
MM-16472 Fix renderItem not returning anything (#2909) 2019-06-21 16:12:46 -04:00
Chris Duarte
31a5d46ee0
Ios accessibility fixes (#2842)
* UCHAT-4371 // MM-15771 - iOS - Larger Fonts Cut Off Text in menu and settings screens

revert padding right

* Update snapshot
2019-06-21 16:10:49 -04:00
Elias Nahum
fe0450e4c7 MM-16392 Split view support & hide sidebar on tablets (#2898) 2019-06-21 14:10:59 -04:00
Elias Nahum
81e328864e
MM-16239 disable fields according to SAML or LDAP (#2878)
* MM-16239 disable fields according to SAML or LDAP

* fix typo
2019-06-17 15:28:14 -04:00
Elias Nahum
46788fa8f6
Set post list data and timestamp based on the user timezone if available (#2888) 2019-06-17 15:26:03 -04:00
Eli Yukelzon
c84b05217b
MM-15486 - Archived channels appear incorrectly on mobile (#2882)
* properly separate archived channels from 'other'

* make sure fetch is performed to display full list

* reverted unneeded change

* corrected display behaviour

* code cleanup

* redux commit reference updated
2019-06-17 10:25:08 -04:00
Miguel Alatzar
630a3db2a6 [MM-15668] Member list items are selectable and enabled only when canManagerUsers is true (#2844)
* Member list items are selectable only when canManagerUsers is true

* Address review comment
2019-06-16 11:16:15 -07:00
Renato Peterman
a565c96fcf
[MM-14917] RN Android: Push notification settings are only saved when closing settings page (#2735)
* Add required action and props

* Allow callback param to setModilePush and setMobilePushStats

* Added saveNotificationProps method to save data on alert save action

* Fix import order

* Fix import path

* Fix import order

* Added defaultProps currentUser to NotificationSettingsMobileAndroid

* Added missing trailing comma
2019-06-15 14:29:44 -04:00
Woolim Cho
a75c4d0a02
Add key to SlideUpPanel (#2845) 2019-06-15 14:22:19 -04:00
Sudheer
c8e4bc01ad MM-16228 Add compatibility for removal of ExperimentalEnablePostMetadata flag from config (#2883) 2019-06-13 16:29:54 -04:00
Elias Nahum
a95fcb3847
MM-16061 Keep unread channels in place on Tablets (#2865) 2019-06-06 15:16:47 -04:00
Elias Nahum
ffe5a89a46
Show broken image for inline images without dimensions (#2868) 2019-06-06 15:15:09 -04:00
Elias Nahum
f76bd73c0b Fix image preview width on tablets (#2867) 2019-06-06 21:04:36 +08:00
Elias Nahum
a05d11635e
Fix file upload not completing (#2866)
* Fix file upload not completing

* Update snapshots
2019-06-06 08:39:57 -04:00
Elias Nahum
ddbc89bb9a
MM-16070 Fix channel sidebar state while filtering (#2864) 2019-06-05 19:34:17 -04:00
Elias Nahum
151a304857
Fix opengraph image on tablet to account for the sidebar (#2863) 2019-06-05 17:59:27 -04:00
Elias Nahum
2a443b35f5
MM-15643 Fix race condition to prompt for passcode and (#2862)
detect if passcode has been removed while the app in the background
2019-06-05 11:08:35 -04:00
Elias Nahum
2a8cf194cb
MM-16013 make paperplain animation faster (#2860) 2019-06-05 11:07:27 -04:00
Saturnino Abril
0b8eb7aac6 fix server version for Android telemetry (#2857) 2019-06-03 09:03:18 -07:00
Elias Nahum
f9d7f74e38
Update netInfo to check for internet connectivity (#2850)
* Update netInfo to check for internet connectivity instead of using apple.com as a reference

* Fix network indicator position on tablets
2019-05-31 13:34:42 -04:00
Elias Nahum
ad0c3a5ea2 MM-15912 Fix uploads stuck at 100% (#2847) 2019-05-30 11:57:45 -07:00
Harrison Healey
163f0b7fdf MM-15643 Better close app when checking for pin code (#2846) 2019-05-30 11:47:15 -07:00
Harrison Healey
64fbff6e71
MM-15643 Send user to settings when passcode is required (#2836)
* MM-15643 Send user to settings when passcode is required

* Allow access to the managed config in the iOS extensions
2019-05-27 19:39:43 -04:00
Elias Nahum
2c7116bc7f
Fix autocomplete showing behind the keyboard on iOS and not working on Android (#2830)
* Fix autocomplete showing behind the keyboard on iOS and not working on Android

* Unbundle config for Android

* Dismiss keyboard on post long press, fix scroll to bottom on new message and update tests

* Add a timeout before scrolling to give time to render the last post

* Fix crash on Android
2019-05-27 19:21:46 -04:00
Miguel Alatzar
ce733903b6
Add unit test for PostBody's measurePost (#2833) 2019-05-25 11:59:32 -04:00
Miguel Alatzar
70218d2173 Allow updating of isLongPost after editing message (#2829) 2019-05-24 14:50:30 -07:00
Miguel Alatzar
e1c5536da8 [MM 15552] Determine number of placeholder rows from height (#2827)
* Calculate maxRows in ChannelLoader component

* Update rn-placeholder

* Fix style check
2019-05-24 12:01:12 -04:00
Elias Nahum
966db803ff Allow drawer pan responder when switching teams (#2823) 2019-05-23 09:01:39 -07:00
Harrison Healey
ac29021c88
MM-15582 Don't show forgot password link without email/username login (#2811) 2019-05-22 11:55:55 -04:00
Elias Nahum
0eda4f49a3
Fix code so it can be parsed by mmjstool (#2816) 2019-05-22 09:32:14 -04:00
Miguel Alatzar
c617f96162 Allow flagging of read-only channel posts (#2801) 2019-05-21 09:12:24 -07:00
Harrison Healey
474d6a0ff2 MM-14802 Add autocorrect when editing a post (#2810) 2019-05-21 08:51:42 -07:00
Elias Nahum
8676d063f2
MM-9494 & MM-13888 Tapping execute actions & interactive keyboard dismissal (#2799)
* MM-9494 & MM-13888 Tapping with the keyboard opened executes the action & iOS iteractive keyboard

* Fix tests

* feedback review

* add new line at the end of file

* feedback review and added todo list

* Track interactive dismiss keyboard and set scrollview bounds natively

* Fix snapshots

* Fastlane default to current branch when no BRANCH_TO_BUILD is set

* Set NODE_OPTIONS in ios build script

* Rebind scrollview when channel gets first set of posts

* Keep scrolling momentum on keyboard close

* Update react-native-keyboard-tracking-view

* Fix ScrollView offset with keyboard-tracking

* Fix offset while dragging the keyboard

* Allow action on channel drawer on tablets

* Fix typo

Co-Authored-By: Saturnino Abril <saturnino.abril@gmail.com>

* Fix indentation
2019-05-20 12:04:18 -04:00
Elias Nahum
2b4574885b
Keep the channel drawer opened on tablets (#2793)
* Keep the channel drawer opened on tablets

* update en.json after running mmjstool

* Set the channel drawer to width 220

* feedback review

* PM Review

* Fix snapshots
2019-05-16 20:40:32 -04:00
Elias Nahum
d0071c21b0 MM-15282 Fix cutoff placeholder on Android (#2798)
* MM-15282 Fix cutoff placeholder on Android

* Feedback review
2019-05-16 17:35:09 -07:00
Elias Nahum
bbfd6e820f
Fix select default channel (#2800)
* Fix select default channel

* use utility with channels in team object

* feedback review

* update mattermost-redux
2019-05-16 20:02:19 -04:00