mattermost-mobile/app
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
..
actions MM-37110: handle toggling of CRT feature (#6382) 2022-07-07 12:19:02 +02:00
client [Gekidou] Fix video uploads (#6440) 2022-06-30 19:16:37 -04:00
components Fix at mention that triggers ephemeral message (#6458) 2022-07-07 12:12:31 +02:00
constants MM-37110: handle toggling of CRT feature (#6382) 2022-07-07 12:19:02 +02:00
context Fix theming and navigation stack tracking (#6443) 2022-06-30 11:14:07 -04:00
database Fix at mention that triggers ephemeral message (#6458) 2022-07-07 12:12:31 +02:00
helpers Fix recent mentions 2022-06-25 08:05:02 -04:00
hooks MM-45022 : Gekidou - Refactor code to use custom nav hooks (#6426) 2022-06-30 11:12:59 -04:00
i18n Substitute all console.x by an appropiate log util function (#6427) 2022-06-24 10:26:40 -04:00
init [Gekidou MM-44135 MM-44134 MM-40088] Group & Clear channel and thread notifications when CRT is on (#6429) 2022-06-30 21:26:14 +05:30
managers [Gekidou] Fix video uploads (#6440) 2022-06-30 19:16:37 -04:00
notifications Try to remove as many as as possible (#6200) 2022-05-12 15:46:11 +02:00
queries MM-37110: handle toggling of CRT feature (#6382) 2022-07-07 12:19:02 +02:00
screens MM-37110: handle toggling of CRT feature (#6382) 2022-07-07 12:19:02 +02:00
store [Gekidou] cleanup fixes (#6376) 2022-06-13 08:07:24 -04:00
utils [Gekidou] Fix video uploads (#6440) 2022-06-30 19:16:37 -04:00