Commit graph

479 commits

Author SHA1 Message Date
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
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
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
Elias Nahum
244ad60525 MM-10016 Globe icon not centered to the channel title in LHS (#1581) 2018-04-12 11:51:19 -04:00
Jesús Espino
f91abf3ea9 Advanced permissions phase 1 (#1571)
* [XYZ-45] New permissions implementation

* Changing mattermost-redux branch in packages.json

* Changed yarn.lock file to point to advanced-permissions-phase-1

* MM-9620: Add reactions permissions (#1451)

* Fixing some code styles warnings

* Fix mobile app to use latest Mattermost redux

* Some merge errors fixed
2018-04-04 18:01:39 +03:00
Elias Nahum
683ebc3faa Select text in the code/text preview screens (#1561)
* Make code and plain text previews selectable

* Support more file formats in text preview

* Fix selection in android
2018-04-04 09:15:23 -04:00
Elias Nahum
e20b84c6d8 Upload progress indicator (#1562)
* Long post support

* Split file upload component

* Use fetch blob fork

* add progress to file upload

* Remove SERVER.PID from Makefile

* Preview only images

* remove unused prop
2018-04-04 09:14:26 -04:00
Elias Nahum
f84d6f76e0
Channel mute style (#1564)
* Channel mute style

* Match opacity change in the webapp
2018-04-04 15:08:12 +03:00
Harrison Healey
1fd94c5ae0 Cherry pick fixes for Sentry issues (#1567)
* Fixed MATTERMOST-MOBILE-ANDROID-85 (#1565)

* Fixed MATTERMOST-MOBILE-ANDROID-87 (#1566)
2018-04-02 23:23:48 +03:00
Michał Odziemczyk
164a5e863c Fix additional GPU overdraw on post list (#1555)
* Fix additional GPU overdraw on post container

* and remove unneeded background color in android's manifest
2018-04-02 12:38:38 -04:00
Elias Nahum
2f27121824 Fix mobile app to use latest Mattermost redux (#1563)
* Fix mobile app to use latest Mattermost redux

* Feedback review
2018-04-02 10:45:16 -04:00
Elias Nahum
a4744e46dd
Fix max length prop to be a number (#1558) 2018-03-30 13:40:39 +03:00
Elias Nahum
6698dbf678 Upgrade to RN 0.54.3 and other dependencies (#1539)
* Upgrade to RN 0.54.2 and other dependencies

* feedback review

* upgrade mattermost-redux

* Update dependencies
2018-03-29 10:05:49 -04:00
Elias Nahum
b3806c04b3 MM-9376 Channel mute (#1540)
* MM-9376 Channel mute

* UI Feedback review
2018-03-29 10:02:23 -04:00
Saturnino Abril
8531212060 [MM-9516] Add feature to add user to channel after at-mention (#1521)
* add feature to add user to channel after at-mention

* update per comment and update mattermost-redux

* move sendAddToChannelEphemeralPost to actions folder

* rebase and fix merge conflicts, do clean up a bit
2018-03-26 13:20:13 -04:00
Saturnino Abril
217c98cab6
fix JS warnings on PostHeader and EditChannelInfo (#1541) 2018-03-26 21:29:22 +08:00
Elias Nahum
579494feab
Long post feature (#1525)
* Long post support

* Fix upload preview

* Add MaxPostSize validation

* Fix show more button container

* localization

* feedback review

* UI feedback review

* Upgrade mattermost-redux

* Fix long post attachment list
2018-03-26 14:25:42 +03:00
Harrison Healey
30a702274a Minor PostList improvements (#1528)
* Moved ChannelPostList footer out of PostList

* Fixed typo in constant

* Added debounce to loadMorePosts

* Fixed post list footer not being rerendered properly
2018-03-23 17:30:24 +03:00
Elias Nahum
8640222b4d
Merge branch 'release-1.7' 2018-03-23 11:30:01 +03:00
Elias Nahum
f56bdb3090 MM-9926 Fix iOS crash caused by permissions (#1535) 2018-03-23 01:08:59 +08:00
Elias Nahum
3bd7275cfa Rename slack attachment to message attachment and fix border color on Android (#1533) 2018-03-22 10:08:27 -04:00
Elias Nahum
fb9760b5a6 MM-9921 Load select team screen when user has no teams (#1527)
* MM-9921 Load select team screen when user has no teams

* Revert to PureComponent
2018-03-22 10:08:03 -04:00
Elias Nahum
1114c3f8dd MM-9920 Fix Invalid or missing team_id parameter in request URL (#1530)
* MM-9920 Fix Invalid or missing team_id parameter in request URL

* Feedback review
2018-03-22 08:59:54 +08:00
Martin Kraft
ebbbd9689b MM-9545: Disables threads with deleted root post, display system message. (#1526)
* MM-9545: Adds system message for deleted root posts in threads; disables input.

* MM-9545: Removes key.
2018-03-21 09:17:54 -04:00
Harrison Healey
082b7022af
MM-9709 Fixed max width of markdown list items (#1520)
* MM-9709 Fixed max width of markdown list items

* Removed unnecessary flex from MarkdownListItem container
2018-03-20 17:25:01 -04:00
Elias Nahum
1f7ec07786
Show attachments in horizontal ScrollView (#1513)
* Show attachments in horizontal ScrollView

* feedback review
2018-03-17 12:31:41 +02:00
Elias Nahum
7ef6fe0f4a Handle permalink Android back button and use the same permalink window to avoid nesting (#1508) 2018-03-16 17:45:06 +02:00
Elias Nahum
040dc00c94 Fix team_icon to reference the pure component (#1507)
* Fix team_icon to reference the pure component

* Fix team icon in Android extension

* Fix team icon in select team screen

* Fix team switch divider in channel drawer
2018-03-16 17:45:06 +02:00
Elias Nahum
cc64cc5dc6 Handle permalink Android back button and use the same permalink window to avoid nesting (#1508) 2018-03-16 10:15:06 -04:00
Elias Nahum
bdb247a90e Fix team_icon to reference the pure component (#1507)
* Fix team_icon to reference the pure component

* Fix team icon in Android extension

* Fix team icon in select team screen

* Fix team switch divider in channel drawer
2018-03-16 10:14:02 -04:00
Michał Odziemczyk
d827192d72 Optimize formatted_time.js (#1503)
* Optimize formatted_time.js

* trailing commas

* export default class
2018-03-14 15:58:24 -04:00
Michał Odziemczyk
3a3be22af0 Remove svg usage for user status (#1486)
* Remove SVG usage for status indicators to speedup channel loading

* Add needed assets for status icons (72x72)

* correct folder name

* Delete offline.png

* Delete dnd.png

* Delete online.png

* Delete away.png

* make icons white

* correct size
2018-03-14 10:31:58 -04:00
Gajanan Patil
f1ea485ba0 [MM-9526] Preview text files (#1485)
* Add text preview screen

* Add text/plain mime in supported docs format

* Add previewTextFile method to view text file in TextPreview Screen

* Fix delay for ui to update progress

* Add styling for text preview screen

* Align line numbers on right

* Start read file for preview before delay
2018-03-14 10:31:06 -04:00
Elias Nahum
6c0242cf19 Add reply to post handler below the profile image (#1493)
* Add reply to post handler below the profile image

* Hide tooltip when post is tapped and tooltip is shown
2018-03-13 09:30:21 -04:00
Harrison Healey
84db6d0974 Reverted changes to normalize font size (#1489) 2018-03-07 16:35:44 +00:00
Harrison Healey
6293d3d5e4
Add null check to iOS tooltip (#1484) 2018-03-07 14:52:31 +00:00
enahum
d0d9103857 [MM-9374] Open Permalinks in app (#1449)
* [MM-9374] Open Permalinks in app

* Feedback review

* Upgrade mattermost-redux

* Fix eslint

* Navigation fixes

* Fixing style of merged lines
2018-03-07 14:48:31 +00:00
Michał Odziemczyk
9d192a3d8a Wait for animation frame before initial rendering of post list (#1477)
* Wait for animation frame before initial rendering of post list

Improves startup experience.
(you can see yourself how big a difference is between booting to an empty channel and to a 'busy' channel, and since rendering post list is a heavy task, this change makes the initial UI appear sooner. In my testing it is about 0.7 seconds)

* eslint

* actually render empty screen when loading posts

* delay channel drawer actions after drawer is fully closed

* lazy render FlatList

* eslint

* eslint
2018-03-07 14:20:25 +00:00
Stan Chan
1a89982087 Fix scroll to new message (#1475) 2018-03-06 20:41:56 +00:00
Christian Hoff
98fee5e473 PLT-7567: Integration of Team Icons (#1470)
* PLT-7567: Integration of team icons in
channel drawer teams, switch team button, team selection, os share extenions

* PLT-7567: adopt updated eslint changes

* PLT-7567: Component for team icon display, refactoring

* PLT-7567: removed redundant styles

* PLT-7567: redux connected component for team icon, error handling
2018-03-06 20:39:24 +00:00
enahum
31d48fa49c [MM-9690] Fix Open teams that you've never been a member of aren't able to be joined (#1465) 2018-03-05 15:13:23 +00:00
enahum
b465312cee Fix edit channel (#1479) 2018-03-05 15:12:28 +00:00
Harrison Healey
80c09b588d MM-9647 Replaced usage of preventDoubleTap with wrapWithPreventDoubleTap (#1471)
* MM-9467 Replaced usage of preventDoubleTap with wrapWithPreventDoubleTap

* MM-9467 Renamed wrapWithPreventDoubleTap to preventDoubleTap
2018-03-02 11:22:37 +00:00
Jesse Hallam
58b72302d6 update eslint's comma-dangle rule to always-multiline (#1457)
* update eslint's `comma-dangle` rule to `always-multiline`

* add check and fix scripts to package.json

* Invoke `yarn fix` to adopt the updated eslint rules. No other changes are included.
2018-02-23 09:06:02 -05:00
enahum
4959af54ed MM-9637 Fix text not visible when typing on Android search box (#1450) 2018-02-20 18:37:00 -05:00