mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Types
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
70e94f9af5
commit
8f8377a71c
@ -33,6 +33,7 @@ import { MatrixEvent } from 'matrix-js-sdk/src/models/event';
|
|||||||
import { RoomPermalinkCreator } from '../../../utils/permalinks/Permalinks';
|
import { RoomPermalinkCreator } from '../../../utils/permalinks/Permalinks';
|
||||||
import { IMediaEventContent } from '../../../customisations/models/IMediaEventContent';
|
import { IMediaEventContent } from '../../../customisations/models/IMediaEventContent';
|
||||||
import ImageView from '../elements/ImageView';
|
import ImageView from '../elements/ImageView';
|
||||||
|
import { SyncState } from 'matrix-js-sdk/src/sync.api';
|
||||||
|
|
||||||
export interface IProps {
|
export interface IProps {
|
||||||
/* the MatrixEvent to show */
|
/* the MatrixEvent to show */
|
||||||
@ -85,7 +86,7 @@ export default class MImageBody extends React.Component<IProps, IState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: factor this out and apply it to MVideoBody and MAudioBody too!
|
// FIXME: factor this out and apply it to MVideoBody and MAudioBody too!
|
||||||
private onClientSync = (syncState, prevState): void => {
|
private onClientSync = (syncState: SyncState, prevState: SyncState): void => {
|
||||||
if (this.unmounted) return;
|
if (this.unmounted) return;
|
||||||
// Consider the client reconnected if there is no error with syncing.
|
// Consider the client reconnected if there is no error with syncing.
|
||||||
// This means the state could be RECONNECTING, SYNCING, PREPARED or CATCHUP.
|
// This means the state could be RECONNECTING, SYNCING, PREPARED or CATCHUP.
|
||||||
|
Loading…
Reference in New Issue
Block a user