Commit graph

1439 commits

Author SHA1 Message Date
Elias Nahum
0856d4b517
Migrate to moment to fix timestamps based on timezone or local time (#3126) 2019-08-15 12:32:16 -04:00
Elias Nahum
d4bd7833ea Fix loosing the server config when handleManagedConfig (#3125) 2019-08-15 08:25:46 -07:00
Eric Shyong
958df2e65f [MM-14018] Ignore leading/trailing colon in emoji picker search (#2974)
* [MM-14018] Ignore leading/trailing colon in emoji picker search

* Respond to feedback

* fix failing test on ESlint
2019-08-15 16:43:23 +08:00
Miguel Alatzar
577ab85151 [MM-17565] Set top bar buttons once component is mounted (#3123)
* Set header buttons after mount

* Do the same for private channel and dm
2019-08-14 15:47:52 -04:00
Miguel Alatzar
ffbae7589f Apply setNavigatorStyles to all navigation components (#3121) 2019-08-15 02:00:21 +08:00
Harrison Healey
0faeb535b9 MM-17425/MM-17683 Disable Send button when sending post (#3099)
* MM-17425/MM-17683 Disable Send button when sending post

* Update snapshot and add tests
2019-08-14 08:29:55 -07:00
Elias Nahum
e09ce13f65 Fix delete the root post on a thread to properly close the thread screen (#3116)
* Fix delete the root post on a thread to properly close the thread screen

* Fix unit test
2019-08-14 21:54:12 +08:00
Miguel Alatzar
6cf6e51457 [MM-17709] Avoid async getSource (#3115)
* Await getSource

* Use server url from EphemeralStore

* Set currentServerUrl in getAppCredentials too
2019-08-14 16:07:12 +05:30
Elias Nahum
1d37c81163 Fix tests (#3114) 2019-08-13 09:51:51 -07:00
Elias Nahum
32f329fca2
MM-17693 Android fix close settings screen (#3108)
* MM-17693 Android fix close settings screen

* Fix unit tests
2019-08-13 10:29:54 -04:00
Elias Nahum
f0a885865f
MM-17692 execute callback after closing post options (#3107)
* MM-17692 execute callback after closing post options

* Fix unit tests
2019-08-13 10:19:11 -04:00
Elias Nahum
b3a4cc2b7e
Do not track foreground notifications when notification is opened (#3105) 2019-08-13 10:16:59 -04:00
Saturnino Abril
ca61faafd5 MM-15218 Open as alert dialog when interactive message is without element (#3088)
* open as alert dialog when interactive message is without element

* add missing translations
2019-08-13 10:16:14 -04:00
Jesús Espino
7410e3c266 Aligning correctly 'has guests' warning in channel info screen (#3097)
* Aligning correctly 'has guests' warning in channel info screen

* Fixing eslint problems

* Adding tests

* Fixing tests
2019-08-12 09:14:47 -07:00
Elias Nahum
9aa7d7e523 Exclude the SafeAreaHeader in Select Server screen (#3094) 2019-08-12 22:58:12 +08:00
Elias Nahum
9d54853be5 Remove unnecessary component definition (#3096) 2019-08-12 22:52:50 +08:00
Miguel Alatzar
d8f9dcc233 [MM-17637] Add flex 1 to wrapper view (#3087)
* Add flex 1

* Add snapshot test

* Fix placeholder text color
2019-08-12 08:22:21 -04:00
Elias Nahum
f1b87cdaa1 MM-17630 add Navigation bar to terms of service modal (#3098) 2019-08-10 22:49:04 +05:30
Elias Nahum
f263eac658
MM-17612 Fix fetch periodic status updates when re-connecting (#3089) 2019-08-09 18:47:38 -04:00
Asaad Mahmood
3c950c514c 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 13:33:38 -04:00
Elias Nahum
06e333dc52
MM-10193 Apply SafeAreaView to Landscape views (#3003) (#3081)
* MM-10193 for landscape Feature

Commit for MM-10193 to the landscape feature with latest pull.
This is the initial commit with SafeAreaView in place, but should not be merged into master as this is step one and not suitable for production.
Another commit will be following with adjustments to allow SafeAreaView to display correctly for users.

* MM-10193 for landscape Feature

Commit for MM-10193 to the landscape feature with latest pull.
This is the initial commit with SafeAreaView in place, but should not be merged into master as this is step one and not suitable for production.
Another commit will be following with adjustments to allow SafeAreaView to display correctly for users.

* MM-10193 Extend design elements for iPhoneX SafeAreaViews

This is the second portion of the MM-10193 changes for the landscape feature. This item was to extend the design elements for the application into the SafeAreaView so the application looks uniform on the iPhoneX.

* MM-10193 Patch for Snapshot tests and eslint

* MM-10193 Re-Patch

These chanbes mistakenly got reverted from last Patch

* MM-10193 Updates for PR

Fixed the 4 screens from the text box that were missed.
Updated the padding to run from a method.

* Revert "MM-10193 Updates for PR"

This reverts commit fe8d650ce3ca2828d8c94e4af470649aa2582ec1.

* MM-10193 Updates for PR

This reverts commit 4966d83d5401720d26ca22a55cf8f92f1657b7e2.
Applied Updated Snapshots

* MM-10193 Updated Modifier for iphone_x_spacing

Updated Modifier for iphone_x_spacing

* MM-10193 Updates for Review

Review changes for Post Textbox and a few states that were unavailable.

* MM-10193 Fix Longpress padding

Fixed longpress padding for Channel Info and Edit Post views.

* MM-10193 Update isLandscape

Updated isLandscape to pull directly from dimensions.
Updated padding for Recent Mentions and Flagged Posts.

* MM-10193 Updates for review longpost

Updated for longpost padding.
Fixed issue with notifications not padding right correctly.

* MM-10193 Update with Cleanup

Reverted Cocoapods back to 1.5.3.
Cleaned up spacing in two files.

* MM-10193 Merge Conflict Updates

Updates to resolve merge conflicts
2019-08-09 11:14:38 -04:00
Elias Nahum
5869e1a110
Fix pop thread screen when deleting the root post (#3092) 2019-08-09 11:04:24 -04:00
Miguel Alatzar
757e58f83b
Increase ReplyIcon dimensions (#3086) 2019-08-09 06:05:11 -07:00
janvt
066e98e145 MM-15218 allow interactive dialogs to have no elements (#3048) 2019-08-09 08:26:50 -04:00
Hossein Ahmadian-Yazdi
55bd6a2f7e [MM-13849] Display confirmation box for [at]all and [at]channel (#3028)
* [MM-13849] Display confirmation box for @all and @channel

* [MM-13849] Fetch Channel stats when user changes channel

* [MM-13849] Address PR comments

* [MM-13849] Addressed PR comments

* [MM-13849] Made getChannelStats into it's own statement
2019-08-08 16:21:52 -04:00
Elias Nahum
fddb0cf2fb
MM-17562 scroll to new message line indicator on componentDidUpdate (#3074)
* MM-17562 scroll to new message line indicator on componentDidUpdate

* feedback review

* Cancel animation frame requests
2019-08-08 15:50:37 -04:00
Elias Nahum
e87858d7af 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:28:07 +08:00
Miguel Alatzar
71e56120eb
[MM-17431] Remove flex for horizontalRule (#3079)
* Remove flex for horizontalRule

* Fix snapshot tests
2019-08-08 07:05:16 -07:00
Miguel Alatzar
c7b5aff765 Fix theme thumbnail width (#3080) 2019-08-08 21:53:44 +08:00
Elias Nahum
76df42bbd1 MM-16752 Fix unhandled promise rejection TypeError state.websocket.lastConnectAt (#3039) 2019-08-02 13:04:50 -07:00
Deepak Sah
8167c2ddea [MM-14593] Add password type for Interactive Dialogs (#2998)
* Added prop secureTextEntry for password type

* Added test cases for DialogElement

* Fixed issues
2019-08-02 14:14:49 -04:00
Elias Nahum
d230bdac1e
MM-17424 Setting to enable/disable fixed sidebar (#3060) 2019-08-02 13:50:31 -04:00
Asaad Mahmood
06f3511222 MM-13083 - Removing refresh button from some pages (#3010)
* MM-13083 - Removing refresh button from some pages

* Updating test

* Removing unused component

* Updating minor changes

* Updating failed actions import

* Updating post list error screen

* Updating connection issue error message

* Updating network connection messages

* Updating terms of service page

* Updating test

* Updating animations and FailedNetwork component

* Reverting some changes

* Updating channel post list

* Updating requestsed changes

* Updating code changes

* Removing error description
2019-07-29 14:26:24 -04:00
Miguel Alatzar
3453de7948 Fix test (#3051) 2019-07-27 01:10:26 +08:00
Miguel Alatzar
4ee4ff10dd [MM-14926] Clear foreground notifications from AsyncStorage on logout and server upgrade (#3033)
* Clear foreground notifications from AsyncStorage

* Remove unnecessary call to clearNotifications
2019-07-26 18:21:11 +08:00
Elias Nahum
f1ef6920f3
MM-17100 setCSRFFromCookie with subpath support (#3035) 2019-07-25 07:16:37 -04:00
Miguel Alatzar
78bdf0e4e2
Check initialIndex in callback (#3025) 2019-07-24 09:51:36 -07:00
Miguel Alatzar
ebe8d45711
[MM-16816] Parse source URI (#3026)
* Parse source URI

* Revert "Parse source URI"

This reverts commit 1cf421c9b9897e46881685aabebb793ad6ff4c07.

* Pass imageUri instead of defaultSource to ProgressiveImage

* Parse source URI in ImageCacheManager
2019-07-24 07:59:06 -07:00
Miguel Alatzar
9a894641fc
[MM-14926] Include in-app notifications in iOS badge number (#3001)
* Include in-app notifications in iOS badge number

* Make foreground notifications key a const
2019-07-24 07:58:15 -07:00
Miguel Alatzar
83c9856897
Call scrollToIndex only if flatListRef.current is not null (#3022) 2019-07-23 11:21:38 -07:00
Miguel Alatzar
59e948f06a Apply new theme to all navigation components (#3005) 2019-07-23 12:21:35 -04:00
Jesús Espino
2106fca1c7
Fixing guest login (#3019)
* Fixing guest login

* Fixing eslint
2019-07-23 11:19:59 +02:00
Miguel Alatzar
228b483153
User popToRoot over resetToChannel (#3016) 2019-07-22 17:04:29 -07:00
Miguel Alatzar
76b4bf8262
[MM-14923] Add channel_id to failed push notification reply (#3014)
* Add channel_id to failed push notification reply

* Fix typo
2019-07-22 14:57:40 -07:00
Jesús Espino
ee93e4fa59
Adding guest accounts feature (#2990)
* 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 22:14:39 +02:00
Miguel Alatzar
8e48058fff
[MM-16910] Set footerColor the same as navBarBackgroundColor (#3002)
* Set footerColor the same as navBarBackgroundColor

* Oops, forgot __snapshots__
2019-07-19 17:29:17 -07:00
Elias Nahum
42e5b79022
Fix Options modal on iOS (#2993) 2019-07-18 15:58:49 -04:00
Sudheer
61d3eda1fd
MM-16829 Fix for sso with server subpaths (#2987) 2019-07-18 23:08:51 +05:30
Elias Nahum
98da0aa607
MM-16815 Remove the failed posts banner on WS reconnect (#2983) 2019-07-18 11:36:37 -04:00
Ewe Tek Min
8a9f1f6ccc [MM-14303] Able to copy channel header and purpose (#2923) 2019-07-18 11:09:47 -04:00