mattermost-mobile/app/queries/servers
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
..
categories.ts [Gekiodu - MM-44156] Channel ordering is different between web and mobile (#6304) 2022-05-26 14:23:40 -04:00
channel.ts Fix links to channels closing the channel (#6446) 2022-06-30 11:13:28 -04:00
custom_emoji.ts
drafts.ts
entry.ts MM-37110: handle toggling of CRT feature (#6382) 2022-07-07 12:19:02 +02:00
file.ts
group.ts [Gekidou] Groups mentions / highlights in messages (posts) (#6338) 2022-06-29 07:47:37 +10:00
post.ts MM-39711 - Gekidou Settings Timezone (#6384) 2022-06-24 06:52:05 -04:00
preference.ts MM-37110: handle toggling of CRT feature (#6382) 2022-07-07 12:19:02 +02:00
reaction.ts Try to remove as many as as possible (#6200) 2022-05-12 15:46:11 +02:00
role.ts Minor performance improvements in post list (#6422) 2022-06-23 11:39:10 +02:00
system.ts MM-39711 - Gekidou - Theme functionality (#6327) 2022-06-10 14:28:35 +04:00
team.ts Fix permalink to not joined channels and to not fetched posts. (#6294) 2022-06-17 19:23:12 +02:00
thread.ts Fix loading threads (#6441) 2022-06-30 10:10:28 +02:00
user.ts [Gekidou] user profile (#6353) 2022-06-06 11:27:25 -04:00