Chore: Remove Non-null assertion operator in ThreadMessagesView (#3632)

Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
Reinaldo Neto 2022-02-04 17:47:05 -03:00 committed by GitHub
parent f9b94df774
commit b95cad71eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -60,7 +60,7 @@ export type TApplicationActions = TActionActiveUsers &
TActionEncryption &
TActionSortPreferences &
TActionUserTyping &
TActionCreateDiscussion&
TActionCreateDiscussion &
TActionCreateChannel &
TActionsShare &
TActionServer &

View File

@ -220,7 +220,6 @@ class ThreadMessagesView extends React.Component<IThreadMessagesViewProps, IThre
.query(...whereClause)
.observeWithColumns(['updated_at']);
// TODO: Refactor when migrate messages
this.messagesSubscription = this.messagesObservable.subscribe(messages => {
const { currentFilter } = this.state;
const displayingThreads = this.getFilteredThreads(messages, subscription, currentFilter);