Commit graph

756 commits

Author SHA1 Message Date
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
Elias Nahum
8e0d167f95 Fix push notification and emm race conditions (#1691)
* Fix push notification and emm race conditions

* feedback review

* Removed unnecesary code
2018-05-22 11:02:14 -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
8cf1f07ad8 fix JS error on announcement banner when no license is set (#1679) 2018-05-18 09:58:49 -04:00
Harrison Healey
5884bd4dc1 MM-10617 Fixed checking if a link is an image (#1681)
* MM-10617 Fixed checking if a link is an image

* Added unit tests
2018-05-18 01:10:17 +08: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
Jesse Hallam
210b3512b1 MM-10460: avoid double post on restore (#1667)
* add test to messageRetention to verify outgoing action type

* ensure messageRetention passes the original action type through

* fix linting issues
2018-05-15 11:39:35 -04:00
Jesús Espino
f4d1294ae0 MM-10454: Adding roles to the cleanup middleware (#1661) 2018-05-14 09:12:29 -04:00
Elias Nahum
8bbc8ddb78 Fix commented on Someone message (#1665)
* Fix commented on Someone message

* Feedback review
2018-05-11 17:14:05 -04:00
Elias Nahum
23ca490525
Ability to upload other file types (#1662) 2018-05-11 18:05:49 -03:00
Elias Nahum
76e664cdae
Prevent duplicate flagged posts (#1670)
* Make sure date component keys are always different

* update mattermost-redux
2018-05-11 18:05:32 -03:00
Elias Nahum
0d92c61a41
Cache team icon and set background to always be white (#1669) 2018-05-11 18:05:16 -03:00
Harrison Healey
40dc8912b7 Fixed empty OpenGraph previews from trying to render an empty string (#1660) 2018-05-08 22:03:43 +08:00
Harrison Healey
4b11195120 MM-10360 Only show link previews if they have a url defined (#1655) 2018-05-07 16:40:55 +08:00
Harrison Healey
4d506b6e4d
Moved getCurrentUserLocale to mattermost-redux (#1652) 2018-05-04 11:21:34 -04:00
Sudheer
4517fcaa8c Add Loading animation to skeleton screen (#1609)
* Add a view for message with linear gradient,move position
   and change opacity using animation interpolation.
2018-05-03 10:06:08 -04:00
Harrison Healey
3b33b51f11
MM-10360 Render OpenGraph previews for pages with an empty description (#1651)
* MM-10360 Render OpenGraph previews for pages with an empty description

* Updated mattermost-redux
2018-05-03 10:02:09 -04:00
Harrison Healey
29d015bd32 Fixed Markdown links when SiteURL isn't configured (#1650) 2018-05-03 21:08:36 +08:00
Chris Duarte
ad21a8cfb2 Add selectDefaultTeam (#1613) 2018-04-30 11:58:31 -03:00
Elias Nahum
aebe22f58d
Fix Android sharing files without extension (#1646) 2018-04-30 11:57:24 -03:00
Saturnino Abril
8a152ac1e7 convert test runner from mocha to jest (#1637) 2018-04-30 10:55:01 -04:00
Elias Nahum
f704d79e72
Merge branch 'release-1.8' 2018-04-27 22:49:49 -03:00
Harrison Healey
4ebff99360 Fix profile images (#1643)
* Attempted to fix profile pictures on Android

* Fixed uploading profile pictures

* Added warning when ImageCacheManager.cache is called without callback

* Fix image cache so the files are not too long
2018-04-27 21:36:33 -03:00
Elias Nahum
80dd9366a1 Update Dependencies (#1641)
* Update dependencies including react-native

* Update react-native-circle-progress dependency

* Fix prop warnings and possible crashes
2018-04-27 17:49:09 -04:00
Elias Nahum
34205bd05e
Fix upload image to display (#1638) 2018-04-27 13:12:15 -03:00
Saturnino Abril
79a35d25ad [MM-10341] Remove "Add Reaction" on posts of flagged, recent mentions and search results (#1631)
* remove "Add Reaction" on posts of flagged, recent mentions and search results

* set default props to true for showAddReaction
2018-04-26 22:01:26 -03:00
Elias Nahum
8807df1309
Fix white screen of death and code/text preview in iOS (#1627) 2018-04-26 12:23:17 -03:00
Elias Nahum
d58d06d7b2 Make image preview placeholder theme compatible (#1619) 2018-04-25 12:44:29 -04:00
Elias Nahum
252ea21f8c
Fix emoji autocomplete (#1616)
* Fix emoji autocomplete

* Feedback review
2018-04-25 13:40:03 -03:00
Elias Nahum
ac6e5fda79
Fix channel autocomplete in search to not include private channels in public section (#1617) 2018-04-25 13:25:47 -03:00
Elias Nahum
b016d203d8
Fix mention badges in channel drawer (#1615) 2018-04-24 18:13:13 -03:00
Saturnino Abril
67a19e6c2b
update profile photo on select and/or save (#1614) 2018-04-25 03:19:45 +08:00
Elias Nahum
223bd40703
Fix post with layout to not create new post components (#1611) 2018-04-24 15:01:24 -03:00
Elias Nahum
86840f761c
Render at-mentions by the teammate name display (#1612) 2018-04-24 11:59:05 -03:00
Elias Nahum
7db7a311f1
MM-10300 Fix crash when leaving channel (#1606) 2018-04-24 08:01:55 -03:00
Elias Nahum
825ac75261
Fix initial post list render 2018-04-20 06:36:44 -03:00
Chris Duarte
00a04dfd55 Fix SAML login button border (#1597) 2018-04-17 15:23:55 -04:00
Chris Duarte
d9f2bca9c0 Share ext error (#1587)
* Wrap iOS share extension in error boundary component

* Wrap Android share extension in error boundary component

* Review feedback
2018-04-17 15:23:37 -04:00
Elias Nahum
033a0c15bd
Fix Downloads and previews (#1596)
* Fix downloads and previews

* Update react-native-doc-viewer dependency
2018-04-17 12:10:51 -03:00
Harrison Healey
5a23129a50 Fixed null pointer in ProfilePicture (#1595) 2018-04-17 22:40:09 +08:00
Saturnino Abril
effc99462b fix crash on search (#1594) 2018-04-17 09:23:28 -04:00
Elias Nahum
a5662cc747 Fix images transition (#1590) 2018-04-17 09:22:49 -04:00
Saturnino Abril
38b16b435f [MM-10055] Filter out deactivated user when viewing channel members (#1582)
* filter out deactivated user when viewing channel members

* apply makeGetProfilesInChannel is filtering out the deactivated user/s

* update using makeMapStateToProps
2018-04-13 13:30:49 -04:00
Saturnino Abril
2092d778f0 [MM-9216] Add date separator per search result item (#1583)
* add date separator per search result item

* rebase to latest and make each post of recent, flagged and search results have date separator
2018-04-13 13:30:15 -04:00
Elias Nahum
006c5a08d7
Use local Images when possible (#1580)
* Fix advance settings android layout

* include react-native-image-gallery dependency

* ImageCacheManager

* Add support for isGif, isDocument, isVideo and purge to file utils

* Remove file fetch cache

* include progressive image component

* Refactor image previewer

* Add image preview support for open graph and embed images

* Cache user profile picture

* Fix post additional content images for android

* Preview markdown inline images

* Improve progressive image

* feedback review
2018-04-13 12:23:15 -03:00
Harrison Healey
c0fa74203c MM-9045 Sorted More Direct Messages by username (#1579) 2018-04-13 12:22:47 -03:00
Chris Duarte
676a180067 Fix press username to mention (#1547)
* Fix press username press to mention

* Add cursorPosition to post_textbx state

* Remove unneeded draftSelectionChanged actions and events
2018-04-13 11:15:19 -04:00
Elias Nahum
484a5a11f9 Flagged Posts and Recent Mentions (#1584)
* Fix reply count in post header

* Make channel loader to trigger manually

* post list selector for search

* Include date separators in search results

* Flagged posts

* Recent Mentions

* Retry option for flagged posts and recent mentions

* feedback review

* Update mattermost-redux
2018-04-13 10:26:37 -04:00
Chris Duarte
d6ee97c0c7 Show FlatList when searching in More DM Screen (#1546)
* Set searchbars to autoCapitalize='none'

*  Show flatlist when searching profiles for more dms

* Fix lint errors
2018-04-13 09:03:02 -03:00
Stan Chan
780d05ccbf ExperimentalHideReadOnlyTownSquare config and readonly PostTexbox placeholder (#1476)
* Remove ability to edit town-square and hide post textbox

* Add placeholder to read only TS post textbox.

* Only run townHallFilter if ExperimentalHideReadOnlyTownSquare is true

* Fix eslint errors

* Refactor to use new read only channel selectors

* Change canEditChannel to check if channel is read only

* Fix rebase issues

* Fix lint errors.
2018-04-13 08:21:25 -03:00