Commit graph

2636 commits

Author SHA1 Message Date
Miguel Alatzar
6eb574b7b2 Add redux-offline dependency (#3459) 2019-10-24 08:50:17 +03:00
Miguel Alatzar
5e5d3abd79 [MM-17145] [MM-18947] [MM-17110] [MM-14926] [MM-18646] Use patched v2.0.6 of react-native-notifications and fix Android badge number (#3382)
* Refactor custom push notification code

* Use react-native-notifications 2.0.6 and patch for scheduled notifs

* Fix patch

* iOS changes

* Fix delete

* Fix setting of badge number on Android

* Undo Reflect removal

* Undo removal of didReceiveRemoteNotification

* Use min importance for push notifs received while app is active

* Correctly set badge number after push notificaiton reply

* Fix tests

* Localize reply action text

* Add getDeliveredNotifications

* Fix identifier check and failing test

* Fix local push notif test for Android > 9
2019-10-22 21:18:59 +03:00
Elias Nahum
8f0619d083
re-add .podinstall to .gitignore 2019-10-22 17:53:19 +03:00
Elias Nahum
b06c2d8541
Removing pods from source control, add cocoapods to circleCI (#3454) 2019-10-22 17:05:54 +03:00
Romain FOYARD
b910786002 Remove deprecated lifecycle methods from misc components (#3426)
* Remove deprecated lifecycle methods from misc components

* Fixed linting errors
2019-10-22 03:20:58 +03:00
CJ
e69b7c46ba
MM-18790 Fix Keyboard Color Flash (#3380)
* MM-18790 Fix Keyboard Color Flash

Resolved the autoresponder keyboard flash by adding a 500ms delay to the keyboard focus, allowing for a smooth keyboard interaction without the color flash.

* MM-18790 Used CreateRef

Updated the reference to React.createRef

* Update app/screens/settings/notification_settings_auto_responder/notification_settings_auto_responder.js

Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>

* MM-18790 Added check for current

Updated the focus check to validate current is truthy
2019-10-21 16:56:58 -04:00
Elias Nahum
010c099654
MM-18490 Migrate app builds to circleCi (#3373)
* Add pods to source control

* Update Fastlane to work with circleCi

* Configure circleCi workflows to build the app

* Set BRANCH_TO_BUILD env var to CIRCLE_BRANCH for PRs

* Use different context for each platform and type

* Fix regex

* Add i18n check
2019-10-21 23:42:49 +03:00
Bryan Culver
4f1211a586 MM-19328 | Add accessibility label to channel drawer button. (#3448)
* MM-19328 | Add accessibility label to channel drawer button.

* MM-19328 | Add accessibility hint and role to channel drawer button.
2019-10-21 23:01:17 +03:00
Miguel Alatzar
1fbf0d28d3
[MM-19084] Apply theme change for all components when theme changes (#3415)
* Apply theme change for all components when theme changes

* Remove unnecessary snapshot test
2019-10-21 12:11:56 -07:00
Miguel Alatzar
8137b8575a
[MM-18983] Listen to safeAreaInsetsForRootViewDidChange over Dimension change (#3413)
* Listen to safeAreaInsetsForRootViewDidChange over Dimension change

* Add snapshots
2019-10-21 11:52:32 -07:00
Dean Whillier
f729dc881b
Bump app build number to 240 (#3443) 2019-10-18 10:55:33 -04:00
Dean Whillier
412ab9f411
Bump app version number to 1.25.0 (#3442) 2019-10-18 10:46:42 -04:00
Miguel Alatzar
90574d2fc5
Rename IOSX_TOP_PORTRAIT (#3412) 2019-10-17 07:58:18 -07:00
Elias Nahum
68cd878311
unsigned (#3430) 2019-10-17 16:56:01 +03:00
Yusuke Nemoto
9b9723282a Fix wording for mobile (#3224) 2019-10-17 11:59:44 +03:00
Elias Nahum
e78d44b13e
Update fastlane (#3425) 2019-10-17 11:59:14 +03:00
Amy Blais
5244f0900e v1.24 Changelog (#3267)
* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>

* Update CHANGELOG.md

Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>

* Update CHANGELOG.md

Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>

* Update CHANGELOG.md

Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>

* Update CHANGELOG.md

Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md
2019-10-17 10:24:43 +03:00
Amit Uttam
0f70af7b16 MM-15469 (Android) Alert if shared text is longer than message limit (#3264)
* MM-15469 Alert if shared text is longer than message limit

One can't manually enter text into the share extension's text box past 4000 characters (the default/defined text size limit). However, this restriction can still be circumvented by sharing a large item of text. In this latter case, the textarea displays just the first 4000 characters, but the value buffer still contains the entire shared text. On hitting "Send", the oversize text can still be shared.

This commit implements [MM-15469](https://mattermost.atlassian.net/browse/MM-15469) to better align the Android sharing user experience with the iOS experience.

Since a pre-existing i18n string was used, no additional translations are required.

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

* Add available characters remaining counter in Android Share textarea

Shows number of available characters remaining until textarea limit (default
= 4000). Similar to iOS experience.

**iOS (normal)**

![iOS (normal)](https://user-images.githubusercontent.com/887849/65007527-d6d1f700-d8dc-11e9-9382-7e4b3c6f4f5d.png)

**Android (normal)**

![Android (normal)](https://user-images.githubusercontent.com/887849/65007570-f2d59880-d8dc-11e9-9795-ed137e4dd506.jpg)

**iOS (past limit)**

![iOS (past limit)](https://user-images.githubusercontent.com/887849/65007638-2b757200-d8dd-11e9-987d-f5e89b2aa0d3.png)

**Android (past limit)**

![Android (past limit)](https://user-images.githubusercontent.com/887849/65007720-5e1f6a80-d8dd-11e9-97ba-370fa6c8db58.jpg)

* Don't limit size of Android Share extension text input box

Pasted shared text was getting cut off after hitting the `MAX_MESSAGE_LENGTH` for shared posts. Alert validation now checks this limit before allowing content to be posted, which made the `maxLength` limit redundant.

Context: https://github.com/mattermost/mattermost-mobile/pull/3264#issuecomment-540962933
2019-10-16 09:51:06 +03:00
Dean Whillier
b253bb23e0
Bump app build number to 239 (#3421) 2019-10-15 09:54:43 -04:00
Michael Kochell
4dc6a0fe5c [MM-19307] Make LHS channel item display name not overlap with mention count (#3417)
* make channel item display name more narrow, so it does not run into the mention count

* Update snapshot
2019-10-15 09:52:25 -04:00
CJ
ca75e2407b MM-19286 Disable Haptic Feedback (#3402)
* MM-19286 Disable Haptic Feedback

Added a check for iOS version <=9 and for iPhones 5/6/SE versions that don't support haptic feedback.

* MM-19286 Fixed the Fix

Misread the repo for the haptic feedback so fixing the fix.

* MM-19286 Removed line in device.js

Removed line in device.js
2019-10-15 10:32:10 +03:00
Miguel Alatzar
854f3082c6
Patch react-native-image-picker (#3411) 2019-10-15 00:27:03 -07:00
CJ
b43638b728
MM-18935 (#3346)
Added SafeAreaView padding for the SSO screen
2019-10-12 01:34:28 -04:00
CJ
0d7d1b7542
MM-18054: Removed Commented On from new messages in thread with same poster (#3351)
* MM-18054:

Added a check for previousPost to use in validating new messages in thread to check if we should display Commented On message.

* MM-18054 Updated

Updated the check for Commented line to validate the previous thread was one that the post user commente on.

* MM-18054 Fixed Eslint Issues

Fixed Eslint Issues

* MM-18054 Fixed Eslint Issues

Missed a space...

* MM-18054 Cleanup

Cleaned up some code from suggestions
2019-10-12 01:31:55 -04:00
CJ
ff3ba8ea01
MM-18791 (#3347)
Added marginHorizontal spacing to the footer for sections.
2019-10-12 01:30:59 -04:00
CJ
55f048ad76
MM-18173 Removed getState from Add Channel Member method (#3371)
Removed getState from Add Channel Member method since the Redux store is not looking for it. 3rd param for this method is a postRootID, which is not sent from this request.
2019-10-12 01:30:03 -04:00
CJ
a2a7a43e92
MM-18829 Updated Channel Header SafeAreaView (#3370)
Removed the RN SafeAreaView and applied the padding for our iOS X specific setting.
2019-10-11 22:14:07 -04:00
Michael Kochell
1b16861174
[MM-19243] Disable reactions on read only channel (#3404) 2019-10-11 08:25:47 -06:00
Harrison Healey
00356ad543
Revert accidentally merged changes from mark-as-unread branch (#3405)
* Revert "Update mattermost-redux"

This reverts commit 04b3897ecb.

* Revert "[MM-17068] Add set post as unread option to menu (#3202)"

This reverts commit c7a29eea6a.
2019-10-11 09:28:09 -04:00
Jesús Espino
d48610407a
Not show the guest badge for system messages (#3393) 2019-10-11 15:24:45 +02:00
Miguel Alatzar
9fa06c45d6
[MM-17381] Await dismissModal before calling showSearchModal (#3362)
* Add unit tests

* Await dismissModal
2019-10-10 20:31:54 -07:00
Elias Nahum
d4c682bddd
MM-17157 Only send notification receipt if server url and session token are set (#3375) 2019-10-10 08:48:38 +03:00
Miguel Alatzar
9507cdf4ef
Fix failing snapshot test and package-lock.json (#3401) 2019-10-09 13:43:32 -07:00
Dean Whillier
fddacedb4f
Bump app build number to 238 (#3397) 2019-10-09 16:01:25 -04:00
Andre Vasconcelos
2f18a0b961 Fixing mention text color (#3372)
* Fixing mention text color

* Updating snapshots

* Update package-lock.json

* Adding highlight link color to other highlight types
2019-10-09 12:44:02 -07:00
Dean Whillier
497d66d9fe
Bump app build number (#3395) 2019-10-09 14:31:29 -04:00
Michael Kochell
e137b46573
[MM-19045] Do not focus search box after clicking a hashtag (#3356) 2019-10-09 09:30:17 -06:00
Asaad Mahmood
1837dd1167 MM-19180 - Updating spacing for mentiosn component (#3384) 2019-10-09 11:16:47 -04:00
Jesús Espino
d7971666c8
Fixing DMs guest label behavior (#3383)
* Fixing DMs guest label behavior

* Adding tests

* Addressing PR review comments
2019-10-09 11:45:31 +02:00
Miguel Alatzar
b1b7fa06cd
Pass fileInfoContainer style directly to Touchable (#3379) 2019-10-08 18:56:16 -07:00
Andre Vasconcelos
1413e66c36 GH-11948 Adding expand button to markdown tables (#3280)
* WIP: Adding expand button to markdown tables

* Moving padding to styleSheet
2019-10-08 18:55:08 -07:00
Elias Nahum
1b8962a024
MM-19185 Fix tab for UnreadIndicator on Android (#3368)
* MM-19185 Fix tab for UnreadIndicator on Android

* update snapshots
2019-10-08 17:34:56 +03:00
Elias Nahum
ed11cf9b6b
Fix running mm-i18n that crashes on conditional operators (#3385) 2019-10-08 15:13:03 +03:00
Harrison Healey
bbd22b8f7f Add android/app/bin to .gitignore (#3374) 2019-10-07 23:53:34 -07:00
Amy Blais
8aeef8a532 Update NOTICE.txt (#3306)
* Update NOTICE.txt

* Update NOTICE.txt
2019-10-07 23:37:06 +03:00
Harrison Healey
2be9285c26 Merge branch 'master' into mark-as-unread 2019-10-07 10:02:38 -04:00
Elias Nahum
c8e2a66f9f
Fix native emojis being cutoff in emoji picker (#3358) 2019-10-07 09:11:53 +03:00
Miguel Alatzar
a5b096fd44
Update total to reflect number of children (#3367) 2019-10-04 15:06:22 -07:00
Harrison Healey
3f13c868f7 Merge branch 'master' into mark-as-unread 2019-10-03 09:28:30 -04:00
Elias Nahum
41d6d6159d
Bump app build number to 236 (#3365) 2019-10-02 21:43:33 +03:00