Lint
This commit is contained in:
parent
45042661c5
commit
490e567c85
|
@ -7,7 +7,7 @@ import { event, Value } from 'react-native-reanimated';
|
||||||
import { Observable, Subscription } from 'rxjs';
|
import { Observable, Subscription } from 'rxjs';
|
||||||
|
|
||||||
import ActivityIndicator from '../../../containers/ActivityIndicator';
|
import ActivityIndicator from '../../../containers/ActivityIndicator';
|
||||||
import { TAnyMessageModel, TMessageModel, TThreadMessageModel, TThreadModel } from '../../../definitions';
|
import { MessageType, TAnyMessageModel, TMessageModel, TThreadMessageModel, TThreadModel } from '../../../definitions';
|
||||||
import database from '../../../lib/database';
|
import database from '../../../lib/database';
|
||||||
import { compareServerVersion, debounce } from '../../../lib/methods/helpers';
|
import { compareServerVersion, debounce } from '../../../lib/methods/helpers';
|
||||||
import { animateNextTransition } from '../../../lib/methods/helpers/layoutAnimation';
|
import { animateNextTransition } from '../../../lib/methods/helpers/layoutAnimation';
|
||||||
|
@ -187,7 +187,7 @@ class ListContainer extends React.Component<IListContainerProps, IListContainerS
|
||||||
this.messagesSubscription = this.messagesObservable?.subscribe(messages => {
|
this.messagesSubscription = this.messagesObservable?.subscribe(messages => {
|
||||||
// @ts-ignore is this enough cols?
|
// @ts-ignore is this enough cols?
|
||||||
messages = messages.map(m => {
|
messages = messages.map(m => {
|
||||||
if (MESSAGE_TYPE_ANY_LOAD.includes(m.t)) {
|
if ((MESSAGE_TYPE_ANY_LOAD as MessageType[]).includes(m.t)) {
|
||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1041,9 +1041,9 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
|
||||||
const { rid } = this.state.room;
|
const { rid } = this.state.room;
|
||||||
const { user } = this.props;
|
const { user } = this.props;
|
||||||
sendMessage(rid, message, this.tmid || tmid, user, tshow).then(() => {
|
sendMessage(rid, message, this.tmid || tmid, user, tshow).then(() => {
|
||||||
if (this.list && this.list.current) {
|
// if (this.list && this.list.current) {
|
||||||
this.list.current?.update();
|
// this.list.current?.update();
|
||||||
}
|
// }
|
||||||
this.setLastOpen(null);
|
this.setLastOpen(null);
|
||||||
Review.pushPositiveEvent();
|
Review.pushPositiveEvent();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue