mattermost-mobile/app/actions/websocket
Kyriakos Z b2d838d3da
MM-37110: handle toggling of CRT feature (#6382)
* MM-37110: handle toggling of CRT feature

When a user toggles CRT on/off the app should truncate affected tables,
and re-fetch data.

Truncated tables:
- POST
- POSTS_IN_CHANNEL
- POSTS_IN_THREAD
- THREAD
- THREADS_IN_TEAM
- THREAD_PARTICIPANT
- MY_CHANNEL

After truncation `entry` is called again. We must make sure though that
we save the CRT change before calling `entry` again, or we end up with
infinite recursion.

PS the UI seems to handle the change rather good

* Fixes appEntry and popToRoot

* Small refactor

* Fixes since param on appEntry

* Further refactoring

* Delete unneeded return type

* Removes shouldPopToRoot from appEntry

* Addresses review comments
2022-07-07 12:19:02 +02:00
..
category.ts Substitute all console.x by an appropiate log util function (#6427) 2022-06-24 10:26:40 -04:00
channel.ts Add column last_fetched_at to MyChannel & Thread tables and the migration (#6433) 2022-06-29 13:28:50 -04:00
index.ts Substitute all console.x by an appropiate log util function (#6427) 2022-06-24 10:26:40 -04:00
integrations.ts Add AppsForm and Interactive Dialogs (#6142) 2022-04-28 18:26:21 +02:00
posts.ts Fix at mention that triggers ephemeral message (#6458) 2022-07-07 12:12:31 +02:00
preferences.ts MM-37110: handle toggling of CRT feature (#6382) 2022-07-07 12:19:02 +02:00
reactions.ts Try to remove as many as as possible (#6200) 2022-05-12 15:46:11 +02:00
roles.ts [Gekidou] user profile (#6353) 2022-06-06 11:27:25 -04:00
system.ts MM-42484 - Gekidou - Update DM/GM display name when teammate name display changes (#6254) 2022-05-13 19:12:54 +04:00
teams.ts Try to remove as many as as possible (#6200) 2022-05-12 15:46:11 +02:00
threads.ts Let ServerDatabases type hold undefined values (#6423) 2022-06-22 17:51:28 -04:00
users.ts [Gekidou] Move managers (#6171) 2022-04-16 09:44:11 -04:00