mattermost-mobile/app/actions
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
..
app [Gekidou] db manager database getters (#6377) 2022-06-13 18:32:47 -04:00
local [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
remote MM-37110: handle toggling of CRT feature (#6382) 2022-07-07 12:19:02 +02:00
websocket MM-37110: handle toggling of CRT feature (#6382) 2022-07-07 12:19:02 +02:00