[Gekidou]: MM-39757 - Recent mentions (#5823)

* [Gekidou]: MM-39757 - Recent mentions

* Refactor channel_info to a separate component

* Fixes schema tests

* Fixes channel_info theme color

* Removes RECEIVED_MENTIONS table and model

Removes RECEIVED_MENTIONS table and model and saves recent_mentions in
the SYSTEM table under the recentMentions ID.

* Cleanup recent_mentions handler

* Adds i18n in recent_mentions screen

* Observe changes on the post messages

* Addresses review comments

* Batches records

* Addresses review comments

* Addresses review comments

* Addresses review comments

* Addresses review comments

* Fetches channels and users needed for mentions

Fetching mentions from all teams might result in missing info like user
profiles, and channels missing from the DB.
This commit fetches all missing users and channels.

* Adds empty state for recent mentions

* Prepares all missing models for channels

* Addresses review comments

* Fixes mention keys for recent mentions

User mention keys when asking for mentions should not include general
purpose ones, like @channel, @all, @here.

Fixes ActivityIndicator color in recent mentions screen.

* Removes top margin of mention message

* Addresses review comments

* Fixes group.name undefined
This commit is contained in:
Kyriakos Z
2021-12-16 12:26:43 +02:00
committed by GitHub
parent 13c67348eb
commit 675d8495b3
33 changed files with 839 additions and 159 deletions

View File

@@ -49,9 +49,9 @@ export const serverSchema: AppSchema = appSchema({
MyChannelSchema,
MyChannelSettingsSchema,
MyTeamSchema,
PostsInChannelSchema,
PostInThreadSchema,
PostSchema,
PostsInChannelSchema,
PreferenceSchema,
ReactionSchema,
RoleSchema,

View File

@@ -14,9 +14,9 @@ export {default as GroupsTeamSchema} from './groups_team';
export {default as MyChannelSchema} from './my_channel';
export {default as MyChannelSettingsSchema} from './my_channel_settings';
export {default as MyTeamSchema} from './my_team';
export {default as PostsInChannelSchema} from './posts_in_channel';
export {default as PostInThreadSchema} from './posts_in_thread';
export {default as PostSchema} from './post';
export {default as PostsInChannelSchema} from './posts_in_channel';
export {default as PreferenceSchema} from './preference';
export {default as ReactionSchema} from './reaction';
export {default as RoleSchema} from './role';