Chore: Remove Non-null assertion operator in ThreadMessagesView (#3632)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
f9b94df774
commit
b95cad71eb
|
@ -60,7 +60,7 @@ export type TApplicationActions = TActionActiveUsers &
|
||||||
TActionEncryption &
|
TActionEncryption &
|
||||||
TActionSortPreferences &
|
TActionSortPreferences &
|
||||||
TActionUserTyping &
|
TActionUserTyping &
|
||||||
TActionCreateDiscussion&
|
TActionCreateDiscussion &
|
||||||
TActionCreateChannel &
|
TActionCreateChannel &
|
||||||
TActionsShare &
|
TActionsShare &
|
||||||
TActionServer &
|
TActionServer &
|
||||||
|
|
|
@ -220,7 +220,6 @@ class ThreadMessagesView extends React.Component<IThreadMessagesViewProps, IThre
|
||||||
.query(...whereClause)
|
.query(...whereClause)
|
||||||
.observeWithColumns(['updated_at']);
|
.observeWithColumns(['updated_at']);
|
||||||
|
|
||||||
// TODO: Refactor when migrate messages
|
|
||||||
this.messagesSubscription = this.messagesObservable.subscribe(messages => {
|
this.messagesSubscription = this.messagesObservable.subscribe(messages => {
|
||||||
const { currentFilter } = this.state;
|
const { currentFilter } = this.state;
|
||||||
const displayingThreads = this.getFilteredThreads(messages, subscription, currentFilter);
|
const displayingThreads = this.getFilteredThreads(messages, subscription, currentFilter);
|
||||||
|
|
Loading…
Reference in New Issue