Commit graph

590 commits

Author SHA1 Message Date
Mattermost Build
521435748e Automated cherry pick of #3240 (#3253)
* Fix edit profile screen being dismissed when removing profile picture

* Fix test
2019-09-12 11:30:58 -03:00
Mattermost Build
069774231c Automated cherry pick of #3233 (#3237)
* Update webview library to remove deprecated API

* Remove unnecessary timeout
2019-09-10 18:32:06 -03:00
Elias Nahum
9f92824dae MM-18223 Fix channel actions on combined sidebar (#3221) 2019-09-09 21:25:40 +08:00
Mattermost Build
3b6ca6fdb8 MM-17792 Do not show download option for files uploaded locally (#3192) 2019-08-26 10:17:54 -04:00
Mattermost Build
0115610152 MM-17886 Do not wait to cancel the video download (#3166) 2019-08-22 20:55:11 -04:00
Mattermost Build
57d148bbf9 Android screen right button colors (#3148) 2019-08-19 10:33:47 -07:00
Mattermost Build
51050e31a9 Fix Regression right buttons color on Android navbar when enable (#3141) 2019-08-17 09:07:56 -07:00
Mattermost Build
9c00f51058 Fix regression close/leave/archive channel redirect to channel screen on Android (#3140) 2019-08-17 09:07:46 -07:00
Miguel Alatzar
5bef5c2da8 Remove renderHasGuestText (#3131) 2019-08-16 03:45:34 +05:30
Miguel Alatzar
b064312e70 Revert "Remove renderHasGuestText"
This reverts commit e82db7840f.
2019-08-15 15:08:25 -07:00
Miguel Alatzar
e82db7840f Remove renderHasGuestText 2019-08-15 15:06:10 -07:00
Elias Nahum
b8b7d54185
Migrate to moment to fix timestamps based on timezone or local time (#3126) 2019-08-15 12:40:07 -04:00
Mattermost Build
d7a85fe2de Automated cherry pick of #3123 (#3124)
* Set header buttons after mount

* Do the same for private channel and dm
2019-08-14 15:54:46 -04:00
Mattermost Build
c1957ac6a0 Apply setNavigatorStyles to all navigation components (#3122) 2019-08-15 02:06:57 +08:00
Mattermost Build
90dba40a92 Automated cherry pick of #3116 (#3120)
* Fix delete the root post on a thread to properly close the thread screen

* Fix unit test
2019-08-14 09:34:18 -07:00
Mattermost Build
94aa1be435 Automated cherry pick of #3108 (#3113)
* MM-17693 Android fix close settings screen

* Fix unit tests

* fix snapshot
2019-08-13 10:34:07 -04:00
Mattermost Build
7bf3020490 Automated cherry pick of #3107 (#3112)
* MM-17692 execute callback after closing post options

* Fix unit tests

* Fix snapshot
2019-08-13 10:29:32 -04:00
Mattermost Build
3ed078f4ce Automated cherry pick of #3087 (#3106)
* Add flex 1

* Add snapshot test

* Fix placeholder text color
2019-08-12 10:13:29 -04:00
Mattermost Build
9ae69d9b43 MM-17630 add Navigation bar to terms of service modal (#3103) 2019-08-10 22:54:53 +05:30
Asaad Mahmood
cdd7a54ef4 MM-17484 - Updating loading rows (#3076)
* MM-17484 - Updating loading rows

* Updating test

* Updating mobile loader css

* Updating test

* Updating changes

* Updating tests
2019-08-09 14:40:07 -04:00
Mattermost Build
41ddb5cc1a Fix pop thread screen when deleting the root post (#3093) 2019-08-09 11:06:16 -04:00
Mattermost Build
a5f8b9bdcc MM-15218 allow interactive dialogs to have no elements (#3090) 2019-08-09 08:31:13 -04:00
Elias Nahum
7b75868101 Various fixes (#3078)
* MM-17588 Remove navigation component from stack

* MM-175986 Fix Clock Display Settings on iOS

* Fix markdown and team icon currentServerUrl

* Fix closing permalink logs out the user

* Fix file attachment document ref

* Fix applyTheme when changing a theme in the app

* Feedback review

* remove / when fetching the image on the markdown table on relative paths
2019-08-08 22:39:27 +08:00
Mattermost Build
24bd57ad3f Automated cherry pick of #3079 (#3083)
* Remove flex for horizontalRule

* Fix snapshot tests
2019-08-08 10:10:22 -04:00
Mattermost Build
b931733695 Fix theme thumbnail width (#3082) 2019-08-08 09:59:55 -04:00
Elias Nahum
e94dfb5389
MM-16752 Fix unhandled promise rejection TypeError state.websocket.lastConnectAt (#3039) 2019-08-02 16:13:55 -04:00
Elias Nahum
da911a2b34
MM-17424 Setting to enable/disable fixed sidebar (#3060) 2019-08-02 13:53:48 -04:00
Mattermost Build
1f8e853e41 Apply new theme to all navigation components (#3021) 2019-07-24 09:24:54 -04:00
Jesús Espino
8887319324
Revert Guest Accounts feature (#3024)
* Revert "Automated cherry pick of #3019 (#3020)"

This reverts commit a0b021d21d.

* Revert "Adding guest accounts feature (#2990) (#3015)"

This reverts commit 60030defb8.
2019-07-23 20:55:15 +02:00
Mattermost Build
0a93ec134c User popToRoot over resetToChannel (#3018) 2019-07-23 09:16:33 -07:00
Jesús Espino
60030defb8
Adding guest accounts feature (#2990) (#3015)
* MM-15059: Restict the permissions for guests (#2791)

* MM-15057: Adding guest badge to identify guest users (#2774)

* MM-15057: Adding guest badge to identify guest users

* Adding Guest tags in the channel title

* Adding i18n translations

* Adding DM and GM guest warnings

* Fixing check-style

* Adding and fixing tests

* Adding i18n text

* Only showing the subtitle when there is enough space

* Addressing new design changes

* Fixing eslint

* Addressing PR comments

* Moving getChannelStats to the handleSelectChannel action

* Adding the guest info in android landscape channel headers

* simplified the guest warning text generation

* Fixing i18n

* Fixing leaving channel behavior for guests (#2989)

* Fixing leaving channel behavior for guests

* Fixing tests and adding a new one

* fixing typo

* Addressing PR comments

* Addressing PR comments

* Fixing tests
2019-07-22 23:46:15 +02:00
Mattermost Build
93498a3ab5 Fix Options modal on iOS (#2994) 2019-07-18 16:00:49 -04:00
Sudheer
6d10915aad MM-16829 Fix for sso with server subpaths (#2987) 2019-07-19 00:08:19 +05:30
Ewe Tek Min
13bb83c11c
[MM-14303] Able to copy channel header and purpose (#2923) 2019-07-18 11:24:02 -04:00
Mattermost Build
3f6e706fa1 Select server fix login options transition (#2986) 2019-07-18 11:00:29 -04:00
Mattermost Build
5492cd5e46 Automated cherry pick of #2961 (#2985)
* Enable emojis for profile icons from webhooks

Removes borders from profile icons when it is from a custom URL.

* feat: reapply border for all profile pictures and shrink emojis

* feat: remove border from emoji profile pictures

* feat: decide if post has emoji icon through props instead of url

* refactor: better checking of potentially undefined property

Co-Authored-By: Elias Nahum <nahumhbl@gmail.com>
2019-07-18 10:26:39 -04:00
Miguel Alatzar
55964d2fda
Add placeholderTextColor when using placeholders (#2976) 2019-07-17 12:56:25 -07:00
Elias Nahum
b8af8a3860
Lazy android native modules (#2973)
* Lazy loading Android modules

* Remove react-native-bottom-sheet

* Remove comments

* npm audit fix

* Update rnn-v2 modals

* audit fix

* Fix tests
2019-07-17 11:06:21 -04:00
Miguel Alatzar
dcfb39efa4 Handle null currentChannelMember (#2980) 2019-07-16 17:52:58 -04:00
Miguel Alatzar
d7432d3d41 Merge branch 'master' into rnn-v2 2019-07-09 14:08:15 -07:00
Elias Nahum
83e9dd844a MM-16857 Fix long posts (#2967) 2019-07-09 11:55:56 -04:00
Miguel Alatzar
5eee2b7652
[MM-16139] [MM-16140] [MM-16141] Update the remaining screens/components (#2920)
* Update screens

* Update login tests

* Remove done

* Fix failing tests

* Update screens and components

* Check styles fix

* Update tests

* Prevent setState call after component unmounts

* Add empty setButtons func to dummy navigator

* Remove platform check

* Remove Platform import

* Update react-native-navigation version

* Add separate showModalOverCurrentContext function

* check-style fixes

* Remove overriding of AppDelegate's window

* Fix modal over current context animation

* Add showSearchModal navigation action

* Check-style fix

* Address review comments

* Update SettingsSidebar and children

* Update EditProfile screen

* Update SettingsSidebar

* Keep track of latest componentId to appear

* Track componentId in state to use in navigation actions

* Update FlaggedPosts and children

* Update RecentMentions

* Update Settings

* Store componentIds in ephemeral store

* Update AttachmentButton

* Remove unnecessary dismissModal

* Fix typo

* Upate NotificationSettings

* Update NotificationSettingsAutoResponder

* Update NotificationSettingsMentions

* Update NotificationSettingsMobile

* Update CreateChannel and children

* Update MoreChannels

* Update ChannelPeek and children

* Update ChannelNavBar and children

* Update ChannelPostList and children

* Update ChannelInfo and children

* Update ChannelAddMembers

* Update ChannelMembers

* Update EditChannel

* Fix setting of top bar buttons

* Update Channel screen and children

* Update PinnedPosts

* Update LongPost

* Update PostOptions

* Update PostTextboxBase

* Update EditPost

* Check-styles fix

* Update DisplaySettings

* Update Timezone

* Update SelectTimezone

* Update IntlWrapper and Notification

* Update InteractiveDialog and children

* Update ExpandedAnnouncementBanner

* Update ClientUpgradeListener

* Update MoreDirectMessages

* Update SelectorScreen

* Update UserProfile

* Update Thread

* Update About

* Update ImagePreview

* Update TextPreview

* Update AddReaction

* Update ReactionList and children

* Update Code

* Update TermsOfService

* Update Permalink

* Update Permalink

* Update ErrorTeamsList

* Update Search

* Remove navigator prop

* Fix setButtons calls

* Remove navigationComponentId

* Fix test

* Handle in-app notifs in global event handler

* Fix in-app notification handling

* Fix typo

* Fix tests

* Auto dismiss in-app notif after 5 seconds

* Fix typo

* Update overlay dismissal

* Animate in-app notif dismissal and allow gesture dismissal
2019-07-08 10:03:31 -07:00
Miguel Alatzar
51aac1e6e7 Merge branch 'master' into rnn-v2 2019-07-02 18:15:19 -07:00
Elias Nahum
20bcb9d44a
Allow the server url to be cleared (#2942)
* Allow the server url to be cleared

* Remove getDerivedStateFromProps
2019-07-02 10:33:40 -04:00
Elias Nahum
614e6da142 Fix AD/LDAP & SAML profile sync properties (#2941) 2019-07-02 10:11:14 -04:00
Miguel Alatzar
30375aa4a2 [MM-16138] Update settings related screens (#2918)
* Update screens

* Update login tests

* Remove done

* Fix failing tests

* Update screens and components

* Check styles fix

* Update tests

* Prevent setState call after component unmounts

* Add empty setButtons func to dummy navigator

* Remove platform check

* Remove Platform import

* Update react-native-navigation version

* Add separate showModalOverCurrentContext function

* check-style fixes

* Remove overriding of AppDelegate's window

* Fix modal over current context animation

* Add showSearchModal navigation action

* Check-style fix

* Address review comments

* Update SettingsSidebar and children

* Update EditProfile screen

* Update SettingsSidebar

* Keep track of latest componentId to appear

* Track componentId in state to use in navigation actions

* Update FlaggedPosts and children

* Update RecentMentions

* Update Settings

* Store componentIds in ephemeral store

* Update AttachmentButton

* Remove unnecessary dismissModal

* Fix typo

* Upate NotificationSettings

* Update NotificationSettingsAutoResponder

* Update NotificationSettingsMentions

* Update NotificationSettingsMobile

* Update CreateChannel and children

* Update MoreChannels

* Update ChannelPeek and children

* Update ChannelNavBar and children

* Update ChannelPostList and children

* Update ChannelInfo and children

* Update ChannelAddMembers

* Update ChannelMembers

* Update EditChannel

* Fix setting of top bar buttons

* Update Channel screen and children

* Update PinnedPosts

* Update LongPost

* Update PostOptions

* Update PostTextboxBase

* Update EditPost

* Check-styles fix

* Update DisplaySettings

* Update Timezone

* Update SelectTimezone

* Remove navigationComponentId
2019-06-28 12:03:18 -04:00
Miguel Alatzar
c278614ca1 [MM-16137] Update post related screens (#2916)
* Update screens

* Update login tests

* Remove done

* Fix failing tests

* Update screens and components

* Check styles fix

* Update tests

* Prevent setState call after component unmounts

* Add empty setButtons func to dummy navigator

* Remove platform check

* Remove Platform import

* Update react-native-navigation version

* Add separate showModalOverCurrentContext function

* check-style fixes

* Remove overriding of AppDelegate's window

* Fix modal over current context animation

* Add showSearchModal navigation action

* Check-style fix

* Address review comments

* Update SettingsSidebar and children

* Update EditProfile screen

* Update SettingsSidebar

* Keep track of latest componentId to appear

* Track componentId in state to use in navigation actions

* Update FlaggedPosts and children

* Update RecentMentions

* Update Settings

* Store componentIds in ephemeral store

* Update AttachmentButton

* Remove unnecessary dismissModal

* Fix typo

* Upate NotificationSettings

* Update NotificationSettingsAutoResponder

* Update NotificationSettingsMentions

* Update NotificationSettingsMobile

* Update CreateChannel and children

* Update MoreChannels

* Update ChannelPeek and children

* Update ChannelNavBar and children

* Update ChannelPostList and children

* Update ChannelInfo and children

* Update ChannelAddMembers

* Update ChannelMembers

* Update EditChannel

* Fix setting of top bar buttons

* Update Channel screen and children

* Update PinnedPosts

* Update LongPost

* Update PostOptions

* Update PostTextboxBase

* Update EditPost

* Check-styles fix

* Remove navigationComponentId
2019-06-26 18:10:41 -04:00
Miguel Alatzar
b65ce5d283 [MM-16136] Update channel related screens (#2915)
* Update screens

* Update login tests

* Remove done

* Fix failing tests

* Update screens and components

* Check styles fix

* Update tests

* Prevent setState call after component unmounts

* Add empty setButtons func to dummy navigator

* Remove platform check

* Remove Platform import

* Update react-native-navigation version

* Add separate showModalOverCurrentContext function

* check-style fixes

* Remove overriding of AppDelegate's window

* Fix modal over current context animation

* Add showSearchModal navigation action

* Check-style fix

* Address review comments

* Update SettingsSidebar and children

* Update EditProfile screen

* Update SettingsSidebar

* Keep track of latest componentId to appear

* Track componentId in state to use in navigation actions

* Update FlaggedPosts and children

* Update RecentMentions

* Update Settings

* Store componentIds in ephemeral store

* Update AttachmentButton

* Remove unnecessary dismissModal

* Fix typo

* Upate NotificationSettings

* Update NotificationSettingsAutoResponder

* Update NotificationSettingsMentions

* Update NotificationSettingsMobile

* Update CreateChannel and children

* Update MoreChannels

* Update ChannelPeek and children

* Update ChannelNavBar and children

* Update ChannelPostList and children

* Update ChannelInfo and children

* Update ChannelAddMembers

* Update ChannelMembers

* Update EditChannel

* Fix setting of top bar buttons

* Update Channel screen and children

* Fix typo

* Use goToScreen for Android too

* Remove navigationComponentId
2019-06-26 16:46:05 -04:00
Elias Nahum
89b96d51db MM-16430 refactor app entry point (#2924)
* MM-16430 refactor app entry point

* iOS Extensions to use session token from KeyChain

* Remove token from general credentials entity

* Fix mattermost-managed.ios to return the cachedConfig

* Migrate server based keychain for android push notifications

* remove unneeded async

* Remove unneeded android InitializationModule
2019-06-26 15:21:20 -04:00
Miguel Alatzar
863043e125 [MM-16134] Update notification settings related screens (#2914)
* Update screens

* Update login tests

* Remove done

* Fix failing tests

* Update screens and components

* Check styles fix

* Update tests

* Prevent setState call after component unmounts

* Add empty setButtons func to dummy navigator

* Remove platform check

* Remove Platform import

* Update react-native-navigation version

* Add separate showModalOverCurrentContext function

* check-style fixes

* Remove overriding of AppDelegate's window

* Fix modal over current context animation

* Add showSearchModal navigation action

* Check-style fix

* Address review comments

* Update SettingsSidebar and children

* Update EditProfile screen

* Update SettingsSidebar

* Keep track of latest componentId to appear

* Track componentId in state to use in navigation actions

* Update FlaggedPosts and children

* Update RecentMentions

* Update Settings

* Store componentIds in ephemeral store

* Update AttachmentButton

* Remove unnecessary dismissModal

* Fix typo

* Upate NotificationSettings

* Update NotificationSettingsAutoResponder

* Update NotificationSettingsMentions

* Update NotificationSettingsMobile

* Remove navigationComponentId
2019-06-25 09:34:26 -04:00