[Gekidou[ [MM-43969, MM-44037] global threads crash, mark as read (#6253)

* Preparing thread data as well with prepareDeletePost

* observing the post directly to prevent the crash until the data issue is found

* mark as read, delete threeds fix

* Update thread.ts

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
Anurag Shivarathri
2022-05-10 15:59:06 +05:30
committed by GitHub
parent 591cfa1ae4
commit ba976dadc2
10 changed files with 104 additions and 28 deletions

View File

@@ -41,6 +41,9 @@ export default class ThreadModel extends Model {
/** participants: All the participants of the thread */
participants: Query<ThreadParticipantsModel>;
/** threadsInTeam : All the threadsInTeam associated with this Thread */
threadsInTeam: Query<ThreadInTeamModel>;
/** post : Query returning the post data for the current thread */
post: Relation<PostModel>;
}