Commit graph

213 commits

Author SHA1 Message Date
Elias Nahum
23e58f2ea1 MM-13830 Ensure schedule of session expired notification (#2554)
* Ensure schedule of session expired notification

* feedback review

* passing intl instead of message
2019-02-07 13:42:26 -08:00
Elias Nahum
477dcbb1c5 Fix other users status changes (#2491) 2019-01-07 15:15:12 -05:00
Brad Coughlin
15b44e9d71 MM-12354 Remove Profile Image (#2428)
* save progress

* Add option to remove profile picture

* missed when rebasing

* rename extraOptions to removeProfileImage

* clean up removeProfileImage action

* placeholder after removing profile picture, unit tests
2018-12-17 07:56:39 +08:00
Elias Nahum
fa12bb18ad
MM-13431 Fix load more posts (#2452)
* Load more posts of a channel by determining the amount of posts shown regardless of how many are in the store

* Feedback review

* do not combine posts when fetching them
2018-12-13 08:38:23 -03:00
Elias Nahum
2184696e65
post menu and file attachments (#2414)
* post menu and file attachments

* Fix post list selector test

* Use new Gesture handler to avoid gesture conflicts in post menu and reaction list

* Allow reaction list to scroll the header on Android

* Feedback review

* Add some comments

* Fix eslint
2018-12-05 14:59:41 -03:00
Jesús Espino
4148ee93e5 MM-12960: Only back to previous channel if is not archived (#2389) 2018-11-28 10:31:48 -05:00
Elias Nahum
508ffad00f Count the posts received after combining join/leave (#2378) 2018-11-27 14:38:32 -05:00
Joram Wilander
e431bd36c4
MM-12845 Add widgets and interactive dialogs (#2353)
* Add widgets and interactive dialogs

* Update snapshots

* Updates per feedback and fix slash command

* Fix style

* Update styling

* Updates per feedback

* Updates per feedback

* More styling changes

* Remove extra space above message menu
2018-11-23 12:30:12 -05:00
Elias Nahum
6df0f8b915
Set the user status as offline when the app loses connection (#2366) 2018-11-22 11:09:55 -03:00
Harrison Healey
9727476ef6 MM-12901 Improve handling of hashtags on Recent Mentions, Flagged Posts, and Permalink screens (#2329)
* MM-12901 Create showSearchModal action and use for hashtags

* MM-12901 Improve handling of hashtags on Recent Mentions, Flagged Posts, and Permalink screens
2018-11-09 20:43:22 -03:00
Elias Nahum
19a755d59f Fix when message have multiple actions (#2331)
* Fix when message have multiple actions

* Feedback review
2018-11-09 18:38:58 -05:00
Elias Nahum
9db040bcf7
Retry fetching teams if no teams are found (#2288)
* Retry fetching teams if no teams are found

* Remove flow
2018-10-27 00:50:19 -03:00
Harrison Healey
cfb372f75a
MM-11157 Switch ESLint to use eslint-config-mattermost (#2247) 2018-10-11 13:35:25 -04:00
Joram Wilander
10a1e93e7d MM-12348 Persist interactive menu choices past channel switch and share with thread view (#2207)
* Persist interactive menu choices past channel switch and share with thread view

* Remove unneeded async
2018-10-03 15:08:05 -03:00
Jesús Espino
2a75ee022c
MM-11606: Back to prev channel on close archived channel (#2183) 2018-09-27 19:02:02 +02:00
Jesús Espino
9668bdc894
MM-11577: Back to previous channel on archive (#2172)
* MM-11577: Back to previous channel on archive

* Add last mattermost-redux version
2018-09-27 18:15:45 +02:00
Joram Wilander
ef3ba7eb00
MM-11934 Add interactive action menus (#2099)
* Add interactive action menus

* Add snapshot tests

* Updates per feedback

* Update styling of menu action

* Updates per feedback

* Update submitted message color

* Update snapshots
2018-09-20 14:01:51 -04:00
Elias Nahum
46b6687d1f Show local notification when replying to PN fails (#2142) 2018-09-21 00:58:21 +08:00
Sudheer
5aac68e785 Change rn-fetch-blob to mock globally in jest (#2124) 2018-09-14 12:14:37 -03:00
Elias Nahum
48a311344c
Fix drawer stutter when jumping to a DM or joining a channel (#2113) 2018-09-13 16:27:45 -03:00
Sudheer
c6ea5e6024 MM-11603 Add a retry screen when fetching teams fails (#2085) 2018-09-06 20:35:50 -03:00
Saturnino Abril
320f1d9c91 fix email notification settings (#2051) 2018-08-29 14:25:09 -04:00
Elias Nahum
96e9c6c707 Update rn-fetch-blob and CBA support for iOS (#2033)
* Update rn-fetch-blob and CBA support for iOS

* remove trusty

* remove react-native-fast-image dependency
2018-08-29 14:01:37 -04:00
Elias Nahum
8120867850 Fix network change status (#2032)
* Fix network change status

* Use the exposed action form redux-offline
2018-08-27 16:54:20 -04:00
Saturnino Abril
669f0ea1cd use profile image from local after editing a profile image (#1990) 2018-08-16 06:57:23 -07:00
Elias Nahum
95ec582849
Fix session expired notification (#1986) 2018-08-09 08:29:38 -04:00
Harrison Healey
34a37cef05 MM-11477 Ensure client calls are wrapped with error handling (#1976) 2018-08-07 13:11:48 -04:00
Saturnino Abril
2fe9d8842a [MM-11492] Add protection in accessing ".team_id" field when it's immediately accessed after the object is created (#1963)
* add protection in accessing ".team_id" field when it's immediately accessed after the object is created.

* remove lastChannelId since lastChannel is being checked already
2018-08-03 10:52:43 -04:00
Saturnino Abril
3a70e5c43f add extra protection to those channel/object followed immediately by accessing its "channel_id" field (#1960) 2018-08-01 13:04:58 -04:00
Chris Duarte
26950abb61 Add deep linking support (#1805) 2018-07-31 08:43:54 -04:00
Elias Nahum
7e90c8ee06
Merge pull request #1908 from mattermost/release-1.10
merge Release 1.10 into master
2018-07-09 19:12:39 -04:00
Saturnino Abril
6458ed871b fix profile upload by using RNFetchBlob (#1900) 2018-07-09 18:32:09 -04:00
Elias Nahum
f157084ad2
Fix replying from push notification (#1894) 2018-07-09 14:59:19 -04:00
Saturnino Abril
0e692c2088 [MM-11004] Fix continuous channel loading (#1803)
* fix continuous channel loading

* revert change on limiting number of pages requested
2018-07-04 11:06:45 -04:00
Elias Nahum
dbb6f16e92
Fetch posts when receive push notifications as soon as possible (#1811) 2018-06-27 12:08:00 -04:00
Stan Chan
583d6b74ee Timezone feature (#1456)
* Add automatic and manual timezone support

Update users timezone and scrollTo selected timezone in SelectTimezone coponent

Clean styles for SelectTimezone screen

Add auto-timezone update when login or enter app

Hide timezone feature behind config

Fix requested changes

Parse SupportedTimezone from config

Add localTime and localized post stamps

Add trailing commas

Include all timezone util methods from redux

Remove EnableTimezoneSelection flag

WIP get timezones from server

Pull supportedTimezones from api

Minor fixes

Remove wrapWithPreventDoubleTap

Revert back to react-intl formatDate

Include timeZone prop in FormattedTime

Refactor Timezone row into component

Minor cosmetic changes

Add minimum server support for the timezone feature

Move getSupportedTimezones to componentWillMount

Move autoUpdateTimezone function to handleSuccessfulLogin

Specify user timezone in profile_header

Remove format props from FormattedTime

Add ExperimentalTimezone flag

Replace Client().getServerVersion() with entities.general.serverVersion

Add isTimezoneEnabled helper function

Move isMinimumServerVersion to utils/timezone.js

* Fix style errors

* Remove date-time-format-timezone polyfill

* Feedback changes

* Use timezone selector from redux

* Explicitly pass hour12 props to intl.formatDate

* Update package-lock

* Revert iOS project file changes

* Fix license header

* Include timezone related paths in modulePaths

* Fix license header

* Fix minor issue with rebasing

* Fix issue with getconfig in GeneralSettings

* Update package-lock
2018-06-27 06:55:03 -04:00
Elias Nahum
ba09fb9792 Sidebars improvement (#1787)
* Sidebars improvement
* Explicitly handle Android back button in code screen
* return null on getDerivedStateFromProps when no state changes needed
2018-06-26 01:17:53 +05:30
Elias Nahum
375c41dc3c
Merge branch 'release-1.9' 2018-06-25 15:31:46 -04:00
Elias Nahum
71e16afbb4 Fix bad action when tapping on a push notification (#1822) 2018-06-25 11:44:42 -04:00
Martin Kraft
3bde858a64 MM-10717: Update longpress buttons when add reaction, edit post, or d… (#1779)
* MM-10717: Update longpress buttons when add reaction, edit post, or delete post permissions change.

* MM-10717: Makes tooltip actions prop required.

* MM-10717: Switches all direct access of 'config' and 'license' to use selectors.
2018-06-21 08:43:17 -04:00
Jesse Hallam
8372e95d4a add eslint-plugin-header, and --fix all (#1726) 2018-06-19 19:14:50 -04:00
Harrison Healey
5aa4f6b6c9 MM-10815 Load more posts when post list is under 1 screen long (#1759) 2018-06-13 09:19:47 -04:00
Harrison Healey
b12d4cd91b MM-10823 Switch to default channel after leaving channel (#1743) 2018-06-07 17:13:29 -04:00
Harrison Healey
0910bef8ae MM-10372 Get channel if necessary when loading from push notification (#1730) 2018-06-05 15:37:44 -04:00
Chris Duarte
5604836a9d Save credentials immediately after login (#1703)
* Save credentials immediately after login

* Add mock app class to login.test.js
2018-05-25 09:21:18 -04:00
Elias Nahum
c171ae4809
Enable Android Unbundle strategy (perf part 2) (#1700)
* Enable Android Unbundle strategy

* feedback review

* Update modulePaths

* Add npm start and use it in the Makefile

* feedback review #2
2018-05-23 13:23:38 -04:00
Elias Nahum
e07a738dcd Remove orientation dependency (#1698)
* Remove orientation dependency

* Update NOTICES
2018-05-23 10:39:23 -04:00
Chris Duarte
4cebfdfd5d Fix issue where auto closed DMs would not show again (#1689)
* Fix issue where auto closed DMs would not show again

* Fix lint error

* Review feedback
2018-05-22 12:26:09 -04:00
Chris Duarte
e8712f9199 Cold startup js refactor (#1598)
* Switch to SingleDex and remove all locales

* WIP Mattermost Start Component for lazy loading modules

* Add files changed for native modules

* Add Entry component and app global object

* dispatch setStatusBarHeight for iOS

* Update screen imports

* Include Entry screen

* Refactor app to mattermost.android.js

* Override unnecessary java files

* Fix minor issues in changes

* Display empty state based on user credentials

Also, add proper background theme for empty loading screen

* Add native module constant cache support

* Fix startup theme regression

* Add Keychain support for credentials

* Fix Orientation regression

*  Fix SharedExtension regression

* Emit NATIVE_APP_LAUNCHED across bridge only once during cold start

* Add iOS Support

* Revert to previous implementation of i18n

* Fix styling issues

* Include listener for SERVER_VERSION_CHANGED

* Add SafeAreaView in Entry screen

* Register deviceToken early, in order to get iOS PN Support

* Include StartTimeModule

* Add ReplyFromPush support and remove NATIVE_APP_LAUNCHED listener

* Package native constants in StartTimeModule and avoid bridge calls

* Fix check-style errors

* Code cleanup

* Rename StartTimeModule to InitializationModule

* Remove NavigationApplication

* Documentation and minor changes

* Account for app opening after SharedExtension

* Refactor getIntl to getTranslations

* Move native module constants into it's own forked repos

* Include FetchBlob and DeviceInfo forked repos
2018-05-18 17:13:00 -04:00
Saturnino Abril
7863ebc588
Include "id" to data for UserTypes actions - RECEIVED_PROFILE_IN_CHANNEL (#1676)
* Include "id" to data for UserTypes actions - RECEIVED_PROFILE_IN_CHANNEL

* update commit of mattermost-redux
2018-05-16 05:21:00 +08:00