Commit graph

2754 commits

Author SHA1 Message Date
Mattermost Build
bb8ebfba42 Automated cherry pick of #3572 (#3612)
* MM-19834 Fixed direct mentions highlight color

Updated the AtMention to check if it will be highlighted before applying it's color. The highlight function was applying it's color before the AtMention color, so it was being overwritten.

* MM-19834 Start Unit Test

* MM-19834 Added Unit Tests

Added unit tests for the rendering of highlighted/non-highlighted displayname.
2019-11-27 09:12:10 +08:00
Mattermost Build
9661a61353 Fix video player refs (#3605) 2019-11-25 17:31:16 -07:00
Mattermost Build
2a261249bb Automated cherry pick of #3601 (#3602)
* Bump app build number to 248

* Bump app version number to 1.26.0
2019-11-22 15:47:56 -03:00
Mattermost Build
c4727e2492 Automated cherry pick of #3588 (#3596)
* MM-20201 Fixed asterisk on Nickname

Added optional prop to the Nickname field, which removes the asterisk

* MM-20201 Updated Position field also

Added optional prop to position field.
2019-11-21 18:05:06 -07:00
Mattermost Build
591d65e57b Automated cherry pick of #3586 (#3594)
* Fix id-loaded on Android

* Fix id-loaded on iOS

* Remove constant for PUSH_TYPE_ID_LOADED
2019-11-21 19:47:44 -03:00
Elias Nahum
8838fd92c2
Bump app build number to 247 (#3593) 2019-11-21 13:21:21 -03:00
Mattermost Build
9b08098572 Automated cherry pick of #3590 (#3592)
* Create notification channels only if supported

* Update comment
2019-11-21 13:18:04 -03:00
Elias Nahum
dd0f424a63
Bump version to 1.25.1 and Build number to 246 (#3587)
* Bump app build number to 246

* Bump app version number to 1.25.1

* Update Fastlane
2019-11-20 21:21:58 -03:00
Mattermost Build
04c660a2e8 Use LifecycleEventListener for MattermostManagedModule (#3585) 2019-11-20 15:32:47 -07:00
Mattermost Build
b9c95a7953 Avoid OOM crash on iOS13 Share Extension (#3583) 2019-11-20 10:53:24 -07:00
Mattermost Build
99e6091014 Fixes crash when sso cookies does not contain an expiration date (#3582) 2019-11-20 10:13:50 -07:00
Harrison Healey
3ba989f521 Merge branch 'mark-as-unread' into release-1.26 2019-11-19 16:07:42 -05:00
Mattermost Build
b7d4d592cc Automated cherry pick of #3571 (#3577)
* Preview markdown table as 5x5 max

* Make linter happy

* Determine max columns from device width

* Add snapshot test

* Use Dimensions and update unit tests

* Remove async
2019-11-19 12:32:12 -07:00
Harrison Healey
7004ea01dc Merge branch 'master' into mark-as-unread 2019-11-19 11:58:33 -05:00
Mattermost Build
1111818d9f Fix CircleCI iOS build by adding watchman (#3576) 2019-11-19 13:55:32 -03:00
Elias Nahum
7af63a7bfe Fix CircleCI iOS build by adding watchman (#3574) 2019-11-19 09:51:41 -07:00
Elias Nahum
c1d3610e0d
Update Podfile.lock 2019-11-19 13:47:47 -03:00
Elias Nahum
609260dac3
Update Podfile.lock 2019-11-19 13:46:48 -03:00
Harrison Healey
b69c6af2b4 Merge branch 'master' into mark-as-unread 2019-11-19 09:57:43 -05:00
Elias Nahum
40102b0cbc translations PR 20191118 (#3569) 2019-11-19 14:41:03 +08:00
Matheus Cardoso
3bd3e56025
MM-17838 Wrap reactions when they exceed screen size (#3144)
* MM-17838 Wrap reactions when they exceed screen size

* Hide add reaction button after 40 reactions

* Hide add reaction button after 40 reactions

* Fix tests

* Fix crash when post has no reactions and convert to factory

* Create constant and use a separate prop for allowing more reactions
2019-11-18 22:13:34 -03:00
Matheus Cardoso
6c1c64f81d MM-17838 Wrap reactions when they exceed screen size (#3144)
* MM-17838 Wrap reactions when they exceed screen size

* Hide add reaction button after 40 reactions

* Hide add reaction button after 40 reactions

* Fix tests

* Fix crash when post has no reactions and convert to factory

* Create constant and use a separate prop for allowing more reactions
2019-11-18 22:10:38 -03:00
Elias Nahum
07ee9f0cc9
Update Podfile.lock 2019-11-18 21:11:48 -03:00
Elias Nahum
d41f51ea04
Update Podfile.lock 2019-11-18 21:11:16 -03:00
Mattermost Build
68d7aad120 Automated cherry pick of #3562 (#3570)
* Android: Fetch notification in notificationReceiptDelivery (#3552)

* Fetch notification in notificationReceiptDelivery

* Fix patch

* Fix patch take 2

* No need to send user_id to ack endpoint

* Just putString in mNotificationProps

* Fix patch take 3

* Revert react-native-notifications patch

* Update patch and fix rejections

* Remove trailing newline in patch

* Move PushNotification changes to end of patch

* npm cache test

* Revert "npm cache test"

This reverts commit d31030aaeeb010c1c3d22a5f6196191eeb849add.

* Created patch after upgrading node

* Created patch after upgrading node take 2

* Remove androidx changes from patch

* Patch packages then jetify

* Cache node_modules without patches

* Remove adding of default message (#3557)

* iOS: Fetch id-loaded push notification from server (#3556)

* Fetch notification from server

* Parse fetched notification response

* Fix id-loaded notifications for DM/GM's

* Only add keys if they exist

* Throw exception if response code is not 200
2019-11-18 14:40:43 -08:00
Miguel Alatzar
ba76e5eac7 [MM-16232] ID loaded push notifications (#3562)
* [MM-16232] Android: Fetch notification in notificationReceiptDelivery (#3552)

* Fetch notification in notificationReceiptDelivery

* Fix patch

* Fix patch take 2

* No need to send user_id to ack endpoint

* Just putString in mNotificationProps

* Fix patch take 3

* Revert react-native-notifications patch

* Update patch and fix rejections

* Remove trailing newline in patch

* Move PushNotification changes to end of patch

* npm cache test

* Revert "npm cache test"

This reverts commit d31030aaeeb010c1c3d22a5f6196191eeb849add.

* Created patch after upgrading node

* Created patch after upgrading node take 2

* Remove androidx changes from patch

* Patch packages then jetify

* Cache node_modules without patches

* Remove adding of default message (#3557)

* [MM-16232] iOS: Fetch id-loaded push notification from server (#3556)

* Fetch notification from server

* Parse fetched notification response

* Fix id-loaded notifications for DM/GM's

* audit fix

* Only add keys if they exist

* Throw exception if response code is not 200
2019-11-18 19:29:49 -03:00
Harrison Healey
725e9a6985 Merge branch 'master' into mark-as-unread 2019-11-18 17:21:42 -05:00
Amy Blais
84a874918d v1.25 Changelog (#3440) 2019-11-18 15:15:04 -03:00
Mattermost Build
7fd1e26678 MM-19991 Filtering search by channel should also show the channel name and not only its ID (#3568) 2019-11-18 12:59:27 -03:00
Elias Nahum
b2e657b159 MM-19991 Filtering search by channel should also show the channel name and not only its ID (#3561) 2019-11-18 23:56:01 +08:00
Mattermost Build
3d7acb2eb9 MM-20007 Fix app crashes when previewing some gif files (#3567) 2019-11-18 12:36:29 -03:00
Elias Nahum
00874eb3ff MM-20007 Fix app crashes when previewing some gif files (#3563) 2019-11-18 10:31:29 -05:00
Mattermost Build
df5c1d73fe Fix theme color for the more channel options (#3566) 2019-11-18 12:19:23 -03:00
Elias Nahum
c68138150e Fix theme color for the more channel options (#3565) 2019-11-18 23:16:30 +08:00
Valentijn Nieman
6020df0b38 MM-19337 Enable users to view archived channels (#3514)
* Archived channels dropdown in more channels modal

* Rename redux actions for archived channels

* Fixed tests and updated snapshots

* Unit test for search in more_channels

* Use translation for dropdown label

* Minimum server requirement for dropdown

* Use BottomSheet instead of Picker component

* loadPublicAndArchivedChannels action instead of separate channel get actions

* Add styles to StyleSheet

* Update mattermost-redux hash

* Update mattermost-redux hash

* Default case for switching channels dropdown

* Improve imports in more_channels.js component

* Fix typo in import

* Add padding to dropdown if landscape

* Update snapshot

* Page counter for public and archive channels

* Updated mattermost-redux commit hash

* Bottom sheet title for ios

* i18n-extract for new showArchived and showPublic strings

* Update mattermost-redux commit hash to latest master
2019-11-18 22:46:50 +08:00
Valentijn Nieman
759d1ce86d MM-19337 Enable users to view archived channels (#3514)
* Archived channels dropdown in more channels modal

* Rename redux actions for archived channels

* Fixed tests and updated snapshots

* Unit test for search in more_channels

* Use translation for dropdown label

* Minimum server requirement for dropdown

* Use BottomSheet instead of Picker component

* loadPublicAndArchivedChannels action instead of separate channel get actions

* Add styles to StyleSheet

* Update mattermost-redux hash

* Update mattermost-redux hash

* Default case for switching channels dropdown

* Improve imports in more_channels.js component

* Fix typo in import

* Add padding to dropdown if landscape

* Update snapshot

* Page counter for public and archive channels

* Updated mattermost-redux commit hash

* Bottom sheet title for ios

* i18n-extract for new showArchived and showPublic strings

* Update mattermost-redux commit hash to latest master
2019-11-18 22:38:30 +08:00
Mattermost Build
fbf712dc8e MM-19993 Fix Channel spinner is black on dark theme (#3564) 2019-11-18 11:09:09 -03:00
Elias Nahum
17a7054ae6 MM-19993 Fix Channel spinner is black on dark theme (#3558) 2019-11-18 22:04:52 +08:00
CJ
0204722627
MM-19037 Updated Progressive Image Loader (#3414)
* MM-19037 Updated Progressive Image Loader

Set the return for the listener to return a null for hte loader images, stopping the component from thinking it had a loaded image on a failure.

Also enabled the thumbnail to make an additional attempt to load when it receives the null response.

* MM-19037 Updated Eslint

Eslint issue resolved

* MM-19037 Add Unit Tests

Added Unit tests

* empty commit
2019-11-17 23:35:44 -05:00
Kaiden Sin
a1c8a4691e [mm 15792] Fix massive app slowdown with many emojis (#3209)
* [MM-16593] [MM-17175] [MM-17164] [MM-17189] [MM-17181] Android - Upgrade to RN 0.60 (#3145)

* Upgrade to react-native 0.60

* Use @sentry/react-native

* Manually link @sentry/react-native

* Address review comments

* Jetify after install

* Call jetify from node_modules

* Run npm install react-native-fast-image --save

* Link react-native-fast-image for Android

* Link react-native-fast-image to iOS Pod

* Replace Image with FastImage in emoji.js and remove redundant caching

* Remove duplicate sentry gradle

* Feedback review

* Remove FastImage and Sentry from the Podfile
2019-11-17 23:34:39 -05:00
CJ
c7cdce01fa MM-18054 Checked for prev post comment line (#3523)
* MM-18054 Checked for prev post comment line

Added check for prev post to stop the "Commented on" line when in same thread.

* MM-18054 Added Unit Tests

Added Unit Tests

* MM-18054 Update props

Updated the prop for isFirstReply
2019-11-17 20:33:14 -08:00
Elias Nahum
c5cf784c76 MM-19600 Align Sidebar separator line between Teams and Channel view (#3559) 2019-11-17 15:02:04 -07:00
Amit Uttam
66a6e5c932 [MM-10813] Design update for Post attachments (#3511)
* [MM-10813] Design update for Post attachments

Fixes https://github.com/mattermost/mattermost-server/issues/12841

* Updated visual treatment for Post attachments (images, documents, videos)
* Grouped image attachments, expanding to fit Post width dimension
* Itemized listing of non-image attachments
* Special handling of "small" image attachments (<48 point width/height)

* Set attachment post width to max width of portrait orientation

Accounts for post display offset and extra spacing used for rendering post replies.

* Use available Post real estate: flex: 1 instead of width 100%

* Image spacing responsibility: AttachmentList -> AttachmentImage

* Fit download progress circle correctly over new attachment icons

* Layers progress circle over the icon, rather than under.
* Uses offset constant as far as possible, rather than fixed point spaces.

* Refactor props and 'more' counting for image file attachment(s)

* Implement conditional gutter between image attachments

Flex's `justifyContent: space-between` won't work in this case because of the use of `absoluteFill` and `paddingBottom: 100%` in the box placeholder for an image attachment to auto-fill *all* available flex space.

* Additional snapshots for Post file attachment scenarios

* Use new 'text' icon for text files (.txt, .rtf)

Depends on https://github.com/mattermost/mattermost-redux/pull/979

Even without the change to mattermost-redux above, text files will default to pre-existing "code" icon.

* Set file attachment icon background to theme

Default to transparent. Override if explicitly specified.

* Treat animated GIFs as images when auto-adjusting attachment width

* Fix images layout, progressive image margins, and gallery for images and videos

* fix on iPad (splitview, permanent sidebar) card types and image sizes

* Add all files back to the gallery
2019-11-15 22:41:09 -05:00
CJ
82d4d88ea5 MM-19697 - Fixed CameraRoll for iOS (#3537)
* MM-19697 - Fixed CameraRoll for iOS

Switched CameraRoll over to the react-native-community version as it was removed from the core package with RN 0.61.2

* MM-19697 - Fix Jest issues

Updated for jest issues
2019-11-15 09:55:08 -05:00
CJ
7f031d9b55 MM-19696 Added font color for GlobalStyle Input (#3536)
Added the default color #3d3c40 for the GlobalStyle Input that the Server select and Login screen used for style.
2019-11-15 17:25:25 +08:00
Elias Nahum
6610a51a3d Fix partially shown drawers when orientation change on iOS (#3555) 2019-11-14 20:21:17 -07:00
Christopher Speller
96b78adf45
Adding ability to disable attachment buttons and fields. (#3541)
* Adding ability to disable attachment buttons and fields.

* Revert package lock

* Use changeOpacity
2019-11-14 10:32:08 -08:00
Elias Nahum
6e3e7a1ab6 MM-19961 Sync persisted channels with the ones returned by the server (#3553) 2019-11-13 19:02:34 -07:00
Harrison Healey
ef162ce403 Merge branch 'master' into mark-as-unread 2019-11-13 19:34:06 -05:00
Elias Nahum
37e715ac8a
Bump app build number to 245 (#3551) 2019-11-13 14:46:30 -05:00