Commit Graph

75 Commits

Author SHA1 Message Date
Elias Nahum
4c389a49fa Gekidou session expired notification (#6639)
* Fix crash on Android when session expired notification is presented

* react-native-notification patch for schedule fix on android and open local notification on iOS

* Fix android scheduled session notification crash

* patch react-native-navigation to support blur/focus AppState on Android

* remove schedule session expired notification from login entry point

* schedule session expired notification actions

* add session manager

* Handle open session expired notification
2022-09-18 06:57:55 -04:00
Anurag Shivarathri
97c41057cc [Gekidou MM-43992] Display message priority labels for the posts (#6620)
* Displays label

* feedback

* import fix

* Moved label colors to stylesheet
2022-09-11 20:45:07 +03:00
Avinash Lingaloo
bdd09607c8 Gekidou - fix about screen - wrong i18n key (#6586)
* added schemaVersion and fix wrong i18n id

* i18n extract
2022-08-20 08:58:06 -04:00
Elias Nahum
f55976a2c3 Pass down client custom headers to native (#6556) 2022-08-09 13:29:51 -04:00
Daniel Espino García
f4e6917185 Ensure no unresolved types in the definition files (#6521)
* Ensure no unresolved types in the definition files

* Address feedback and general cleanup

* Move import from @constants/x to @constants where relevant

* Remove unneeded "import as"
2022-08-05 14:36:19 +02:00
Anurag Shivarathri
690dd1e66e [Gekidou MM-42242 MM-46043] Paginating Threads (#6535)
* Pagination and bug

* Feedback and version update

* Making the args optional

* Code refactor
2022-08-04 17:19:55 +05:30
Shaz MJ
4b698c7f41 [Gekidou] Saves groups + group-channel for constrained channels (#6358)
* Rebases and addresses PR feedback

* Rebased and addresses PR feedback

* Checks group constraint in action instead

* Update method docs, parallel promises

* Parallel promises, method docs

* Cleans up method docs

* Method docs cleanup

* Update app/database/operator/server_data_operator/handlers/group.ts

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-08-01 08:02:15 +10:00
Daniel Espino García
bae5477b35 Graph QL POC (#6024)
* First approach

* Lint

* Fixes and adding monitoring console statements (to be removed later)

* Add pagination and apply graphQL also to login

* Get all entry points to use the same GQL call

* Unify gql handling

* Use graphQL on websocket reconnect

* Handle latest changes regarding categories

* Use graphQL to properly fetch channel members on other servers

* Remove logs and fetch unreads from other teams

* Minor fixes

* Final fixes

* Address feedback, minor refactoring, and fixes around the refactor

* Fix custom status duration types

* Add missing fields and some reordering

* Add timeout to fetch posts for unread channels
2022-07-29 16:28:32 +02:00
Christopher Poile
5bb240dec8 MM-43300: Calls v2 first cut (#6475)
* Android and iOS requirements

* external types

* babel config for calls, package.json for calls dependencies

* state in rxJS; tests

* actions, client/rest, websocket events, constants

* webrtc connection logic

* calls components / screens

* handle peer destroyed gracefully

* PR comments

* remove ViewPropTypes from mocks; no need to ignore error in LogBox

* calls.d.ts -> calls.ts; i18-extract

* @app/products/calls -> @calls

* PR comments; test cleanup

* Revert "remove ViewPropTypes from mocks; no need to ignore error in LogBox"

This reverts commit f9bd171a54.

* working on typing withServerUrl

* added exportedForInternalUse instead of commenting "internal export"

* better switchToThread in call_screen

* i18n

* typed withServerUrl
2022-07-22 15:57:12 -04:00
Anurag Shivarathri
102789bbd9 [Gekidou MM-40089 MM-39318] CRT New Messages Line (#6489)
* New Messages Line + More Messages

* Misc

* Update app/actions/local/thread.ts

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
2022-07-22 17:28:14 +05:30
Avinash Lingaloo
431406f09b MM-45221 - Gekidou Settings fixes - part 1 (#6472)
* modifying setting option

* navigates to email screen

* UI construction [in progress]

* hooking up withObservables

* email settings - need to save now

* adding a bit of paddings

* setting initial value

* Update notification_email.tsx

* UI Polish - main setting screen

* UI Polish - Mention

* UI Polish - Notification main screen

* code clean up

* code clean up

* UI Polish Notification

* UI Polish

* code clean up

* UI Polish - OOO

* fix observable for email interval

* fix ooo

* fix ooo

* added setting_row_label component

* further clean up

* UI Polish - Display - [ IN PROGRESS ]

* UI Polish - Display - [ IN PROGRESS ]

* UI Polish - Timezone Select [ IN PROGRESS ]

* Update index.test.tsx.snap

* Update app/screens/settings/notification_email/notification_email.tsx

Co-authored-by: Daniel Espino García <larkox@gmail.com>

* refactor after review

* update option_item so that action can accept type React.Dispatch<React.SetStateAction

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2022-07-15 13:32:25 +04:00
Shaz MJ
f12be07df7 [Gekidou] Saves groups + groupTeams for constrained teams (#6357)
* Rebases and addresses PR feedback

* Update method docs, parallel promises

* Cleans up method docs
2022-07-15 11:02:29 +04:00
Shaz MJ
de2c240bc7 [Gekidou] [Migration] Adds member_count to groups table (#6468)
* Adds member_count to groups table

* Newline
2022-07-15 11:01:54 +04:00
Jason Frerich
97b5e75e5f [Gekidou - MM-44930] Use File component for showing files in search. (#6425)
* add observables for search component
add loader screen
add file client searches for files

* hook up loader component for loading state

* search results with found posts now working

* get and store files when searching

* query file results from the database
display dummy file text for now

* add filter screen and icon to the results header

* needs some cleanup but functionally works
- applied filters reduce files to subset of selectd types
- no filters will show all files

* update number files in parenthesis to match the filtered number of files
(if filtered)

* added the missing file extensions found in webapp
added document_types which is a superset of other types

* remove clear all text from filter and from bottom_sheet component

* checkin before merge latest gekidou branch
- change filters to use latest figma design
  - from multiselect to single select
  - revert changes to bottom sheet content that allowed adding a RHS title button
  - start of the file attachement cards show in file results

* Cleanup and fixes

* Remove nested scroll views

* Address feedback

* Address feedback

* extract the fileInfos from the results object, from an array

* add translations for filters

* add translations

* use Object values to determine if has file info results

* Combine fetch recent mentions and search for posts

* add search icon back to home screen

* remove unused function import

* fix formatting and add 3 dot onPress option

* don't show search button

* Add touchable opacity for pressing the card
Add function for opening gallery
Fix `...` so only clicking directly over it calls it's function.  Everywhere else calls open gallery

* place compassIcon in a touchable and add hitslop
create individual objects for flex column and row

* use one-liner for text
move constant outside of the component

* truncate filename if over max filename lenght and append ...
fix style for filename

* remove all commented filetype code. This will not be added to the card
because of added length to second row. Feedback from UX discussion

* remove trimFileName function and MAX_FILENAME_LENGTH constant
make the textContainer grow in width.  The other flex boxes are constant width
align main container center and remove vertical margins

* create TabTypes contant and TabType Type to replace all uses of 'messages' and
'files'

* make padding adjustments based on the selected tab and if there are
results.
When no results are shown, we want the 'Check the spelling or try
another search' text to not move or flicker when switching between files
and messages

* put the margin on the touchable container, not the compassicon so the
hitslop is relative to the compassicon.

* Add the channel name to the filecard.
each fileInfo from the server contain a channel_id. Add to the reponse type

* Move the channel name to a separate line

* implement changes from PR. Shrink channel name when it doesn't fit

* use a useMemo instead of useCallback

* initial commit

* working copy using the File component instead of creating a new FileCard
component

* add styhling for long channel name

* update styling for info text

* update styling

* disable lint check for console statement until function is hooked up

* fixt linting errors caused by api including channel_id. It needs to be
optional or the model will complain

* when a file is an image, show the image or video as an image instead of
the generic file icon

* make `asCard` File Prop optional

* shift the image icon over 4px

* tweaked styles

* tweaked styles for file info

* move files directory from inside the post_list/post/body/ folder to its
own component because is it referenced from other screens and components
including:

app/components/post_draft/uploads/upload_item/index.tsx
app/components/post_list/post/body/content/image_preview/image_preview.tsx
app/components/post_list/post/body/content/message_attachments/attachment_image/index.tsx
app/components/post_list/post/body/index.tsx
app/screens/gallery/document_renderer/document_renderer.tsx
app/screens/home/search/results/results.tsx

* create useImageAttachments hook and share with files component and
results

* rename all renderXXXFile useMemo options to xxxFile. These return the
actual component

* use explicit Boolean(onOptionsPress)

* isSingleInput does not need to be a function

* use find instead of filter().map()

* add dependencies and refactor to reduce some file dependency arrays

* order files by reverse create_at date

* remove console.log and leave as a comment for now

* update styling so that the view wrapper has the borderRadius.  Now
android and ios get the correct borderRadius surrounding the channel
name

* use the results of the ordered useImageAttachements results as data for
File and Gallery

* remove extra empty line

* PR feedback
- rename capitalize const
- add several useCallbacks
- use typescript optional parareter instead of if statement

* - remove useMemos that only return a component
- fix bug - when channel name is not present, don't show the channel
  component. This happened when looking at posts in a channel because
  post comes from the model, which does not include the channelName.
  This is because in the channel view all images are in a specific
  channel and no need to store it

* remove useMemo import

* remove callback

* - remote unused operator
- nothing needed outside of try catch

* remove unused Client import

* s/xxxFile/renderXxxFile/ because theare are a function that returns a
component

* move constant above component

* default to 0 instead of forcing to be defined

* use observerConfigBoolean

* import as type because not useing to construct as models

* add links to Jira ticket and github PR

* add line breaks and sort alphabetically

* use ternary operator to reduce number of lines

* move up as far as possible

* remove unused style

* sort props and input vars alphabetically

* move higher in the component

* return ealier

* no need for useDerivedValue. useMemo instead

* use useCallback

* Minor tweaks and fixes

* Remove floats from style

Co-authored-by: Daniel Espino García <larkox@gmail.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>
2022-07-14 12:50:05 +02:00
Shaz MJ
dcfc6e7927 [Gekidou] Groups + group-memberships deferred fetch (#6370)
* WIP

* Actions updated to fetch remote first, and local on error

* Groups fetch and save

* PR Feedback: prepare vs store and undefined fix

* Forgot to add file

* Groups Mention WIP

* Groups highlight!

* Merge, PR Feedback

* PR Feedback

* PR Feedback: Try/Catch blocks

* PR Feedback

* Rebased with PR feedback

* Exclusion fix, plus id order

* Tidies up iterations

* Loops updated

* Update app/database/operator/server_data_operator/handlers/group.ts

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>

* PR Feedback: Remove unnecessary prepare/store methods

* Newline ESLint error

* Extracts out id generation for group-associations

* Batches if not fetchOnly

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
2022-07-07 12:20:06 +02:00
Elias Nahum
75ed884e65 Add column last_fetched_at to MyChannel & Thread tables and the migration (#6433)
* Add column last_fetched_at to MyChannel & Thread tables and the migration

* Fix schema tests

* Handle lastFetchAt, retrieve threads on init and properly observe thread unreads (#6436)

* [Gekidou] Set lastFetchAt when fetching posts for a channel (#6437)

* Set lastFetchAt when fetching posts for a channel

* When resetting _preparedState set always to null

* Revert changes in WS

* Handle and set lastFetchedAt for MyChannel in iOS push notification

* feedback review

* iOS fallback to last post createAt if no lastFetchAt set

* Handle lastFetchAt on Android push notifications

* create storePostsForChannel local action

* Fix iOS fallback to last post create_at

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2022-06-29 13:28:50 -04:00
Jason Frerich
196f922b6a [Gekidou - MM-44645] Search Screen - show results from server (#6314)
Co-authored-by: Daniel Espino García <larkox@gmail.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-06-15 08:29:32 -05:00
Avinash Lingaloo
9370a9c54e MM-39711 - Gekidou Settings Push Notification functionality (#6373)
* adding nav hooks

* added save button

* capturing value from OptionItem

* notification - saving in progress

* tested API

* corrections after review

* Update en.json

* Update notification_push.tsx

* ts fixes

* minor improvement

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-06-14 10:35:50 +04:00
Elias Nahum
81357d8a0e [Gekidou] Update database to hold if a user is a team or channel admin (#6351)
* Update database to hold if a user is a team or channel admin

* TeamMembership identifier

* Fix handleTeamMembership test

* Update server.md

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
2022-06-06 05:54:02 -04:00
Avinash Lingaloo
2d3d43c000 MM-39711 - Gekidou Notification Push Notification main screen (#6312)
* added chevron to menu item component

* starting with the skeleton

* starting with the skeleton

* starting with the skeleton

* starting with the skeleton

* remove extra line

* tested on tablets

* some corrections

* corrections as per review

* starting with notification skeleton

* attached notification settings to navigation

* added auto responder

* update translation

* update snapshot

* updated snapshot

* correction after review

* removed unnecessary screen

* refactored

* updated the testIDs

* Update Package.resolved

* refactor

* removed Mattermost as default server name

* fix ts

* refactored settings constant

* display settings skeleton

- pending: query for allowed themes

* added 'allowedThemes' query

* added section item

* mention screen skeleton in place

* added section and sectionItem component

* added reply section to the mention screen

* update i18n

* rename screens properly

* update i18n

* Refactored to MentionSettings component

* Refactored to ReplySettings component

* style clean up

* textTransform uppercase

* rename Section/SectionItem to Block/BlockItem

* added mobile push notif screen - push status section

* adding text to those two components

* correction following review

* added mobile push notification section

* added mobile push notification thread section

* style fix

* code fix

* code fix

* MM-39711 - Gekidou Notification - Auto Responder main screen (#6313)

* added skeleton for auto responder

* code clean up

* correction from peer review

* correction from PR review

* clean up

* PR review correction

* correction

* clean up

* clean up

* code clean up

* code clean up
2022-06-03 16:02:40 +04:00
Elias Nahum
a0f25f0e3b [Gekidou] Channel Info screen (#6330)
* Channel Info screen

* Delete the channel & related data when archiving while viewing archived channels is off

* feedback review

* UX feedback

* Add missing isOptionItem prop
2022-06-02 16:09:12 -04:00
Krm
efeab53d0b [Gekiodu - MM-44156] Channel ordering is different between web and mobile (#6304)
* new approach added queries for sorting channels

* crt reply checking added for post remote actions

* Fix category_body test

* crt replay check fixed for fetchPostsForChannel

* sortedchannels re-rendering fix

* Only fetch Direct channels if there are more/less

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-05-26 14:23:40 -04:00
Shaz MJ
6d6085ed4b [Gekidou] Groups + group membership schema (#6251)
* First pass at adding groups to mobile

* Reverts back and updates the group vars

* Cleans tests

* Missing created/updated/deleted fields in types, many-many ref fix

* Adds to manager

* PR Feedback

* Failing test

* Move FK out of comment, add indexes

* updated docs/database/server artefacts

Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
2022-05-19 17:54:39 +10:00
Daniel Espino García
a4674915c1 Better handle go to location (#6262)
* Better handle go to location

* Improve server check
2022-05-19 09:06:31 +02:00
Avinash Lingaloo
e2d45165ab MM-43584 - Gekidou Mute Channel SnackBar (#6241)
* add remote action updateChannelNotifyProps

* Squashed commit of the following:

commit f093cd3409
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Mon May 2 12:12:43 2022 +0400

    revert changes made to the ephemeral store

commit aabe8bd17e
Merge: 18df47210 ee01febbb
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Mon May 2 12:09:50 2022 +0400

    Merge branch 'gekidou' into gekidou-snack-bars

commit 18df472108
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Mon May 2 12:04:53 2022 +0400

    fix timer not stopping

commit 5910238aaa
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 18:19:18 2022 +0400

    style fix

commit def4ad4cfd
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 14:36:36 2022 +0400

    eslint fix

commit 99fa65e780
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 14:18:03 2022 +0400

    fix styling

commit cf335e28b0
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 13:54:05 2022 +0400

    fix  layoutAnimation

commit d1dacbba73
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 13:43:04 2022 +0400

    add exitingg layoutAnimation

commit bb1156c3da
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 13:26:37 2022 +0400

    add entering layoutAnimation

commit 36d7286acd
Merge: 177281fbe 22a173ec9
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 11:41:30 2022 +0400

    Merge branch 'gekidou' into gekidou-snack-bars

commit 177281fbeb
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 11:41:06 2022 +0400

    cancelled timers on panning start

commit 6925cf59aa
Merge: e294a3a19 dad63b87b
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 17:36:11 2022 +0400

    rebasing

commit e294a3a199
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 17:14:33 2022 +0400

    dismiss overlay on tabPress

commit 9a57a0866f
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 16:59:07 2022 +0400

    dismiss overlay on tabPress

commit c7eef4b304
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 15:55:33 2022 +0400

    dismiss overlay on navigating away

commit 58a364171e
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 15:25:27 2022 +0400

    dismiss overlay on navigating away

commit 3c53e7d6a7
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 13:42:10 2022 +0400

    checks for ongoing animation

commit e62a4ee2a2
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 13:14:39 2022 +0400

    removed toast keyword

commit bc014b86e9
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 12:54:55 2022 +0400

    PanGesture- fine tuning the animation

    PanGesture- wip

commit 8f675566e7
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 12:09:35 2022 +0400

    PanGesture- wip

commit eb2a63c75f
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed Apr 27 11:17:13 2022 -0400

    snack positioning and touches

commit 6db7f0e0e7
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 27 16:43:47 2022 +0400

    using EphemeralStore and listeners to discard overlays

commit 99a9a52789
Merge: 5237401f5 776f56efb
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 27 14:51:32 2022 +0400

    Merge branch 'gekidou' into gekidou-snack-bars

commit 5237401f52
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 27 13:16:47 2022 +0400

    able to touch through on iOS

commit 7dc5c5c39e
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Tue Apr 26 15:17:53 2022 +0400

    adding PanGesture

    adding PanGesture- wip

    PanGesture- wip

commit 772654f7e5
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 21 13:57:42 2022 +0400

    update message to text

commit 53c7ca68ba
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 21 13:40:30 2022 +0400

    adjust width

commit 0c20bd7e73
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 18:05:44 2022 +0400

    changed location to sourceScreen in post.tsx

commit efbccbb710
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 18:04:19 2022 +0400

    removed space

commit cc400482bd
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 18:01:23 2022 +0400

    corrections from reviews

commit 4204b6c656
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 14:47:52 2022 +0400

    Update en.json

commit 80f6d675f5
Merge: c59a2cfc0 c1e71b09c
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 14:27:33 2022 +0400

    Merge branch 'gekidou' into gekidou-snack-bars

commit c59a2cfc05
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 13:58:22 2022 +0400

    removed offSetY

commit a65af7057b
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 12:24:02 2022 +0400

    styling tablet

    wip

    tablet portrait

commit 3ef280c80c
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Tue Apr 19 16:10:37 2022 +0400

    styling mobile

    wip

* Squashed commit of the following:

commit ab09b39c77
Merge: 038476c01 362db9d98
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu May 5 15:06:12 2022 +0400

    Merge branch 'gekidou' into gekidou-snack-bars

commit 038476c01a
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu May 5 15:05:24 2022 +0400

    bumping the toast vertically by 4px

commit 362db9d98d
Author: Shaz MJ <shaz.amjad@mattermost.com>
Date:   Thu May 5 11:17:33 2022 +1000

    Moves collapse animation to FlatList, updates timings (#6220)

    * Moves collapse animation to FlatList, updates timings

    * dev review

    * filters unreads from other categories & removes duplicate

    Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
    Co-authored-by: Mattermod <mattermod@users.noreply.github.com>

commit 14abe4d2ac
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 17:26:32 2022 -0400

    Remove jcenter (#6226)

commit c8e46607b7
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 13:13:23 2022 -0400

    upgrade exoplayer

commit 32fd8e3cda
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 12:15:13 2022 -0400

    Add ellipsis to server displayName & url (#6223)

commit abc5dc4bc3
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 09:55:51 2022 -0400

    Fix GM display name (#6215)

commit ecfbb934a8
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 09:51:14 2022 -0400

    [Gekidou] Exclude muted channels from unread badges (#6208)

    * Exclude muted channels from unread badges

    * Gekidou unreads mention fix (#6221)

    * Removes muted channels without mentions from grouped unreads

    * show channel if unread and have no mentions when unread up top

    Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

    Co-authored-by: Shaz MJ <shaz.amjad@mattermost.com>

commit 588491f582
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 09:32:43 2022 -0400

    Fix alignment of custom status (#6211)

commit 4fc077caef
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 09:13:17 2022 -0400

    Fetch missing custom emojis (#6216)

commit 3aa0425fdd
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 09:12:37 2022 -0400

    Preserve notifications when tapping or clearing notifications from a channel (#6209)

commit bd50422167
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Tue May 3 17:26:35 2022 -0400

    Hide archive channels in channel list (#6214)

commit 43c43e50d4
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Tue May 3 14:43:55 2022 -0400

    Do not set new line message indicator on own posts (#6206)

commit f973ac8016
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Tue May 3 14:29:37 2022 -0400

    [Gekidou] Find channels (remote) (#6203)

    * Display local results

    * Fix queryPreferencesByCategoryAndName to observeWithColumns value

    * Find channels (remote)

    * ux feedback review

    * dev review

    * dev review 2

    * Fetch deleted channels from other teams

commit bb42339c42
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Tue May 3 11:58:47 2022 -0400

    Increase tap area of the + button on home screen (#6207)

commit 02b4295464
Author: Daniel Espino García <larkox@gmail.com>
Date:   Tue May 3 17:22:21 2022 +0200

    [Gekidou] [MM-39936] Add Select Team Screen (#6180)

    * Add Select Team Screen

    * Fixes for iPhone and iPad

    * Fix tests

    * Address feedback

    * Fix tests

    * Theme illustration

    * Address feedback and fixes

    * Remove database warnings by avoiding recalculations on repeated events.

    * Address feedback

    * Remove unneeded catch

    Co-authored-by: Daniel Espino <danielespino@MacBook-Pro-de-Daniel.local>

commit 2376dc934c
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Tue May 3 08:54:13 2022 -0400

    Fix Back button position in Navigation Header (#6204)

commit f093cd3409
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Mon May 2 12:12:43 2022 +0400

    revert changes made to the ephemeral store

commit aabe8bd17e
Merge: 18df47210 ee01febbb
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Mon May 2 12:09:50 2022 +0400

    Merge branch 'gekidou' into gekidou-snack-bars

commit 18df472108
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Mon May 2 12:04:53 2022 +0400

    fix timer not stopping

commit 5910238aaa
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 18:19:18 2022 +0400

    style fix

commit def4ad4cfd
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 14:36:36 2022 +0400

    eslint fix

commit 99fa65e780
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 14:18:03 2022 +0400

    fix styling

commit cf335e28b0
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 13:54:05 2022 +0400

    fix  layoutAnimation

commit d1dacbba73
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 13:43:04 2022 +0400

    add exitingg layoutAnimation

commit bb1156c3da
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 13:26:37 2022 +0400

    add entering layoutAnimation

commit 36d7286acd
Merge: 177281fbe 22a173ec9
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 11:41:30 2022 +0400

    Merge branch 'gekidou' into gekidou-snack-bars

commit 177281fbeb
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Fri Apr 29 11:41:06 2022 +0400

    cancelled timers on panning start

commit 6925cf59aa
Merge: e294a3a19 dad63b87b
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 17:36:11 2022 +0400

    rebasing

commit e294a3a199
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 17:14:33 2022 +0400

    dismiss overlay on tabPress

commit 9a57a0866f
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 16:59:07 2022 +0400

    dismiss overlay on tabPress

commit c7eef4b304
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 15:55:33 2022 +0400

    dismiss overlay on navigating away

commit 58a364171e
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 15:25:27 2022 +0400

    dismiss overlay on navigating away

commit 3c53e7d6a7
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 13:42:10 2022 +0400

    checks for ongoing animation

commit e62a4ee2a2
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 13:14:39 2022 +0400

    removed toast keyword

commit bc014b86e9
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 12:54:55 2022 +0400

    PanGesture- fine tuning the animation

    PanGesture- wip

commit 8f675566e7
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 28 12:09:35 2022 +0400

    PanGesture- wip

commit eb2a63c75f
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed Apr 27 11:17:13 2022 -0400

    snack positioning and touches

commit 6db7f0e0e7
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 27 16:43:47 2022 +0400

    using EphemeralStore and listeners to discard overlays

commit 99a9a52789
Merge: 5237401f5 776f56efb
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 27 14:51:32 2022 +0400

    Merge branch 'gekidou' into gekidou-snack-bars

commit 5237401f52
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 27 13:16:47 2022 +0400

    able to touch through on iOS

commit 7dc5c5c39e
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Tue Apr 26 15:17:53 2022 +0400

    adding PanGesture

    adding PanGesture- wip

    PanGesture- wip

commit 772654f7e5
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 21 13:57:42 2022 +0400

    update message to text

commit 53c7ca68ba
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu Apr 21 13:40:30 2022 +0400

    adjust width

commit 0c20bd7e73
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 18:05:44 2022 +0400

    changed location to sourceScreen in post.tsx

commit efbccbb710
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 18:04:19 2022 +0400

    removed space

commit cc400482bd
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 18:01:23 2022 +0400

    corrections from reviews

commit 4204b6c656
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 14:47:52 2022 +0400

    Update en.json

commit 80f6d675f5
Merge: c59a2cfc0 c1e71b09c
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 14:27:33 2022 +0400

    Merge branch 'gekidou' into gekidou-snack-bars

commit c59a2cfc05
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 13:58:22 2022 +0400

    removed offSetY

commit a65af7057b
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Wed Apr 20 12:24:02 2022 +0400

    styling tablet

    wip

    tablet portrait

commit 3ef280c80c
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Tue Apr 19 16:10:37 2022 +0400

    styling mobile

    wip

* minor clean up

* Squashed commit of the following:

commit c7c00b8316
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Thu May 5 18:25:46 2022 -0400

    Ensure posts are not covered by the post draft on channel switch

commit 58719c82dc
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Thu May 5 14:09:30 2022 -0400

    fix flip of post list (#6234)

commit 9d3c7c9496
Author: Joseph Baylon <joseph.baylon@mattermost.com>
Date:   Thu May 5 10:04:33 2022 -0700

    Detox/E2E: Messaging e2e tests in Gekidou (#6228)

commit 1760b75dbf
Author: Anurag Shivarathri <anurag6713@gmail.com>
Date:   Thu May 5 21:03:09 2022 +0530

    [Gekidou] [MM-43973] Thread footer for recent mentions (#6225)

    * Displaying thread footer

    * Participants can be empty

    * Update thread.ts

commit 83c2cfff97
Author: Avinash Lingaloo <avinashlng1080@gmail.com>
Date:   Thu May 5 18:00:32 2022 +0400

    MM-41532 Gekidou Snack Bars (#6181)

    * styling mobile

    wip

    * styling tablet

    wip

    tablet portrait

    * removed offSetY

    * Update en.json

    * corrections from reviews

    * removed space

    * changed location to sourceScreen in post.tsx

    * adjust width

    * update message to text

    * adding PanGesture

    adding PanGesture- wip

    PanGesture- wip

    * able to touch through on iOS

    * using EphemeralStore and listeners to discard overlays

    * snack positioning and touches

    * PanGesture- wip

    * PanGesture- fine tuning the animation

    PanGesture- wip

    * removed toast keyword

    * checks for ongoing animation

    * dismiss overlay on navigating away

    * dismiss overlay on navigating away

    * dismiss overlay on tabPress

    * dismiss overlay on tabPress

    * cancelled timers on panning start

    * add entering layoutAnimation

    * add exitingg layoutAnimation

    * fix  layoutAnimation

    * fix styling

    * eslint fix

    * style fix

    * fix timer not stopping

    * revert changes made to the ephemeral store

    * bumping the toast vertically by 4px

    Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

commit 2deb2e01e0
Author: Anurag Shivarathri <anurag6713@gmail.com>
Date:   Thu May 5 18:36:18 2022 +0530

    [Gekidou][MM-43870, MM-43896, MM-43898, MM-43902, MM-43903] CRT related bug fixes (#6205)

    * Fixes

    * Updated snapshot

    * Excluding current user from getting updated

    * Doesn't handle users if it's empty

    Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

commit 251ef0992b
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Thu May 5 08:53:27 2022 -0400

    Fix create direct message styles (#6224)

commit 5620a50975
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Thu May 5 08:53:02 2022 -0400

    Fix channel item with long name and badge (#6222)

commit a0d2f33b2f
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Thu May 5 08:47:09 2022 -0400

    Dismiss post options before executing action (#6227)

commit c4e1b4ad3e
Author: Shaz MJ <shaz.amjad@mattermost.com>
Date:   Thu May 5 22:45:50 2022 +1000

    Fixes grouped unread sorting (#6230)

    * Fixes grouped unread sorting

    * Type fix

commit 362db9d98d
Author: Shaz MJ <shaz.amjad@mattermost.com>
Date:   Thu May 5 11:17:33 2022 +1000

    Moves collapse animation to FlatList, updates timings (#6220)

    * Moves collapse animation to FlatList, updates timings

    * dev review

    * filters unreads from other categories & removes duplicate

    Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
    Co-authored-by: Mattermod <mattermod@users.noreply.github.com>

commit 14abe4d2ac
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 17:26:32 2022 -0400

    Remove jcenter (#6226)

commit c8e46607b7
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 13:13:23 2022 -0400

    upgrade exoplayer

commit 32fd8e3cda
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 12:15:13 2022 -0400

    Add ellipsis to server displayName & url (#6223)

commit abc5dc4bc3
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 09:55:51 2022 -0400

    Fix GM display name (#6215)

commit ecfbb934a8
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 09:51:14 2022 -0400

    [Gekidou] Exclude muted channels from unread badges (#6208)

    * Exclude muted channels from unread badges

    * Gekidou unreads mention fix (#6221)

    * Removes muted channels without mentions from grouped unreads

    * show channel if unread and have no mentions when unread up top

    Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

    Co-authored-by: Shaz MJ <shaz.amjad@mattermost.com>

commit 588491f582
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 09:32:43 2022 -0400

    Fix alignment of custom status (#6211)

commit 4fc077caef
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 09:13:17 2022 -0400

    Fetch missing custom emojis (#6216)

commit 3aa0425fdd
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Wed May 4 09:12:37 2022 -0400

    Preserve notifications when tapping or clearing notifications from a channel (#6209)

commit bd50422167
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Tue May 3 17:26:35 2022 -0400

    Hide archive channels in channel list (#6214)

commit 43c43e50d4
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Tue May 3 14:43:55 2022 -0400

    Do not set new line message indicator on own posts (#6206)

commit f973ac8016
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Tue May 3 14:29:37 2022 -0400

    [Gekidou] Find channels (remote) (#6203)

    * Display local results

    * Fix queryPreferencesByCategoryAndName to observeWithColumns value

    * Find channels (remote)

    * ux feedback review

    * dev review

    * dev review 2

    * Fetch deleted channels from other teams

commit bb42339c42
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Tue May 3 11:58:47 2022 -0400

    Increase tap area of the + button on home screen (#6207)

commit 02b4295464
Author: Daniel Espino García <larkox@gmail.com>
Date:   Tue May 3 17:22:21 2022 +0200

    [Gekidou] [MM-39936] Add Select Team Screen (#6180)

    * Add Select Team Screen

    * Fixes for iPhone and iPad

    * Fix tests

    * Address feedback

    * Fix tests

    * Theme illustration

    * Address feedback and fixes

    * Remove database warnings by avoiding recalculations on repeated events.

    * Address feedback

    * Remove unneeded catch

    Co-authored-by: Daniel Espino <danielespino@MacBook-Pro-de-Daniel.local>

commit 2376dc934c
Author: Elias Nahum <nahumhbl@gmail.com>
Date:   Tue May 3 08:54:13 2022 -0400

    Fix Back button position in Navigation Header (#6204)

* snack bar with undo option

* fix react error

* implement onAction correctly

* implemented pessimistic approach

* fix ts issue

* Move toggleMuteChannel to remote actions

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-05-17 14:19:55 -04:00
Elias Nahum
2c6bd00128 Set 5s as default timeout for ping (#6271) 2022-05-13 11:36:30 -04:00
Elias Nahum
08d80e6236 Replace lottie loading spinner for activity indicator (#6266) 2022-05-12 12:54:43 -04:00
Daniel Espino García
75d1c9d228 Try to remove as many as as possible (#6200)
* Try to remove as many ` as ` as possible

* Fix imports
2022-05-12 15:46:11 +02:00
Anurag Shivarathri
ba976dadc2 [Gekidou[ [MM-43969, MM-44037] global threads crash, mark as read (#6253)
* Preparing thread data as well with prepareDeletePost

* observing the post directly to prevent the crash until the data issue is found

* mark as read, delete threeds fix

* Update thread.ts

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-05-10 15:59:06 +05:30
Elias Nahum
22a173ec97 [Gekidou] Add Latex support (#6195)
* Add Latex support

* Markdown memoization

* feedback review

* feedback review 2
2022-04-28 12:27:10 -04:00
Daniel Espino García
e047106bac Add AppsForm and Interactive Dialogs (#6142)
* Add AppsForm and Interactive Dialogs

* Add the missing plumbing for Interactive Dialogs and minor fixes

* Remove widgets subfolder

* Fix paths

* Address feedback

* Address feedback

* i18n extract

* Only set the dialog if we are in the same server
2022-04-28 18:26:21 +02:00
Kyriakos Z
df3ef72a0a [Gekidou CRT] thread mention counts (#6126)
* Sets values on my_channel according to CRT

* Team counts with regard to CRT

* Fixes myChannel.is_unread with regard to CRT

* Include DM/GMs for thread counts on demand

* Incorporate thread mention counts in server/channel

* Channel updates in regard to CRT
2022-04-12 13:27:40 +03:00
Kyriakos Z
3326f34933 [Gekidou HOTFIX] fixes saving threads in the DB (#6132)
* [Gekidou HOTFIX] fixes saving threads in the DB

`loadedInGlobalThreads` cannot be a property of the thread, the DB will
fail with unknown column upon saving.

This commit makes it an argument of handleThreads and
handleThreadInTeam.

Fixes wrong foreignKey in THREAD table associations.

* Fixes errors

* Fixes error
2022-04-06 17:37:17 +03:00
Anurag Shivarathri
8d6fc41dd5 [Gekidou MM-41093] CRT - WS Events, Actions, Queries, Thread Follow, Post Query (#6075)
* WS Events, Actions, Queries, Thread Follow, Post Query

* i18n changes

* Misc

* Only unread threads are marked as read

* Mark threads from WS even as visible in Global threads

* Merge fixes

* Update thread_post_list.tsx

* Merge fix

* Feedback fix

* Make teamId in handleThreads optional for unfollowed threads

* Removed unwated type and return

* Review changes

* Removing unused model

* Merge fix

* Misc fixes

* Following button query change
2022-04-04 19:55:13 +05:30
Elias Nahum
527bd04170 Update dependencies 2022-03-26 20:33:13 -03:00
Daniel Espino García
c1b8b0ee38 Merge branch 'gekidou' into CommandAutocomplete 2022-03-24 18:45:42 +01:00
Elias Nahum
7f9cd287fe feedback review 2022-03-23 11:35:37 -03:00
Daniel Espino García
7ffcba44d6 Link to autocomplete component and fix issues 2022-03-18 13:56:03 +01:00
Daniel Espino García
b2408bd5d1 Add command autocomplete 2022-03-17 18:07:04 +01:00
Daniel Espino García
9f9190f5db Add User Mention to autocomplete (#6005)
* Add User Mention to autocomplete

* Minor fixes

* Fix at_mention (you) alignment

* Add missing translation strings

* Make it more parallel to channel mentions

* Fix bot tag

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-03-14 17:05:52 -03:00
Daniel Espino García
b27ebce2e0 [Gekidou] [MM-39718] Add Create DM screen (#5900)
* Add Create DM screen

* Add channel toggle and minor improvements

* Fix tests and apply new UI

* Address feedback UX feedback and fix missing menu item by adding another item height

* Add display name to channels and piggyback improvement on fetchUserByIds action and translations fix

* Address feedback

* Fix hardcoded colors

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-03-11 12:57:31 -03:00
Anurag Shivarathri
9dbdae22fd [Gekidou MM-39707] CRT DB (#5948)
* Database init

* Naming fix

* naming misc

* Fix test

* Added Thread Tab columns, Team Threads Count table and other changes

* Test case fix

* Test cases fix ...... AGAIN

* TS fix

* Removed loaded_in_all_threads_tab, loaded_in_unreads_tab

* Removed TeamThreadsCount table, mention & message root counts & added loadedInGlobalThreads flag

* Type changes, added delete thread with post

* Removed unused type

* Reverted relationshio of post with thread

* Calling thread destroyPermanently from post

* Removed unused table name variables

* added THREAD constant table in post model and fixed a few comments

* Misc typo fix and code clean up

* Added test case and related to participant in user model

* test cases fix

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-03-03 22:47:29 +05:30
Elias Nahum
5de54471b7 [Gekidou] Gallery (#6008)
* Gallery screen (ground work)

* Open the gallery from posts

* Open the gallery from post draft

* feedback review

* Feedback review 2

* do not remove dm channel names and localization fix

* update to the latest network-client

* do not override file width, height and imageThumbail if received file does not have it set

* bring back ScrollView wrapper for message component

* Remove Text wrapper for markdown paragraph

* Fix YouTube play icon placeholder

* Make video file play button container round

* Add gif image placeholder

* Save images & videos to camera roll

* Feedback review 3

* load video thumbnail when post is in viewport

* simplify prefix
2022-03-01 13:55:44 -03:00
Avinash Lingaloo
ea54a8dff3 MM-41748 Gekidou Post Options Queries (#5972)
* skeleton in place

* fix ts error

* creating base option component

* Added all options except reaction

* moved options under /component/options

* added destructive styling

* skeleton - need polishing now

* default emojis for quick reaction

* rename files and small refactor

* Properly close bottom sheet

* redid reaction component

* canSave, isSaved

* canAddReaction condition

* fix aligment

* code clean up

* fix opening on tablet

* undo comment on local reaction action

* undo needless formatting

* clean up comment

* shows selected reaction

* fix marginTop and added title for Tablet

* code clean up

* investigating navigation

* fixed navigation

* Post options bottomSheet and renamed DrawerItem to MenuItem

* renamed optionType to testID

* update navigation_close_modal to close_bottom

* removed context in favor of Pressable

* Apply suggestions from code review

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* removed theme prop from PickReaction

* en.json and code fixes

* removed post_options from screen/index

* removed post_options from screens constant

* Revert "removed post_options from screen/index"

This reverts commit 24caa9773f.

* Revert "removed post_options from screens constant"

This reverts commit 863e2faaf7.

* fix theme import

* remove useless margin

* disabled post_options

* queries - work in progress

* queries - work in progress

* queries - work in progress

* minor fix

* queries - work in progress

* queries - work in progress

* queries - work in progress

* queries - work in progress

* queries - work in progress

* fix query

* queries - work in progress

* reaction query fixed

* queries - work in progress

* queries - canReaction option

* queries - canDelete option

* queries - canReply option

* queries - canPin, canSave, canCopyPermalink option

* queries - options - wip

* queries - options - wip

* queries - options - wip

* fix location

* removed logs

* undo post_draft changes

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-02-16 14:21:27 +04:00
Elias Nahum
1b62c10dcc [Gekidou] various fixes (#5951)
* Specify the screen to be dismissed from the bottom sheet on tablets

* reposition unread badge on server icon

* Skip setNavigatorStyles and set correct theme for login flow screens

* Fetch current user status with fetchMe and when the WS connects

* switchToChannel skip setting current channel if id is the same

* ChannelMention component to use switchToChannelById instead of switchToChannel

* loginEntry only set initialChannel if isTablet

* deferredAppEntryActions mark channel as read and fetch channel stats if initialChannel is set

* feedback review

* feedback review
2022-02-10 11:46:35 -03:00
Daniel Espino García
210a2f2d8a [Gekidou] [MM-39717] Add Channel Browser screen (#5868)
* Add Channel Browser screen

* Fix tests

* Fix lint

* Address feedback

* Fix test

* Remove cancel and fix bottom sheet size

* Address feedback

* Address feedback

* Keep loading when not many items are visible.

* Separate search_handler from browse channels

* Search channels directly instead of filtering from the loaded

* Address feeback

* Reduce the size of search_handler.tsx

* Add title and closeButtonId to bottomSheet

* Let the default value be public and set it before the if

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-02-10 12:45:07 +01:00
Daniel Espino García
55324127e1 [Gekidou] Post input (#5844)
* Initial commit post input

* Fix message posting, add create direct channel and minor fixes

* Fix "is typing" and "react to last post" behaviour

* Some reordering, better handling of upload error, properly clear draft on send message, and fix minor progress bar misbehavior

* Add keyboard listener for shift-enter, add selection between video or photo while attaching, add alert when trying to attach more than you are allowed, add paste functionality, minor fixes and reordering

* Add library patch

* Fix lint

* Address feedback

* Address feedback

* Add missing negation

* Check for group name and fix typo on draft comparisons

* Address feedback

* Address feedback

* Address feedback

* Address feedback

* Fix several bugs

* Remove @app imports

* Address feedback

* fix post list & post draft layout on iOS

* Fix post draft cursor position

* Fix file upload route

* Allow to pick multiple images using the image picker

* accurately get the channel member count

* remove android cursor workaround

* Remove local const INPUT_LINE_HEIGHT

* move getPlaceHolder out of the component

* use substring instead of legacy substr for hardward keyboard

* Move onAppStateChange above the effects

* Fix camera action bottom sheet

* no need to memo SendButton

* properly use memberCount in sender handler

* Refactor how to get memberCount

* Fix queryRecentPostsInThread

* Remove unused isDirectChannelVisible && isGroupChannelVisible util functions

* rename errorBadUser to errorUnkownUser

* extract localized strings

* use ClientErrorProps instead of ClientError

* Minor improvements

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
2022-02-03 08:59:15 -03:00
Daniel Espino García
bebfccb964 [Gekidou] Add Draft Upload Manager (#5910)
* Add Draft Upload Manager

* Address feedback

* Use callbacks instead of events and add byteCount

* Address feedback
2022-02-01 17:26:26 +01:00
Shaz Amjad
fc29b4b974 [Gekidou] Sidebar Categories (Database only) (#5909) 2022-01-31 10:30:10 -03:00
Elias Nahum
702aadfddd Not require Websocket type definition imports 2022-01-28 15:53:55 -03:00