fix lint
This commit is contained in:
parent
789ee3efda
commit
74e6e8fd8b
|
@ -161,6 +161,7 @@ class MessageAudio extends React.Component<IMessageAudioProps, IMessageAudioStat
|
||||||
|
|
||||||
getUrl = () => {
|
getUrl = () => {
|
||||||
const { file } = this.props;
|
const { file } = this.props;
|
||||||
|
// @ts-ignore can't use declare to type this
|
||||||
const { baseUrl } = this.context;
|
const { baseUrl } = this.context;
|
||||||
|
|
||||||
let url = file.audio_url;
|
let url = file.audio_url;
|
||||||
|
@ -172,6 +173,7 @@ class MessageAudio extends React.Component<IMessageAudioProps, IMessageAudioStat
|
||||||
|
|
||||||
handleAutoDownload = async () => {
|
handleAutoDownload = async () => {
|
||||||
const { author } = this.props;
|
const { author } = this.props;
|
||||||
|
// @ts-ignore can't use declare to type this
|
||||||
const { user } = this.context;
|
const { user } = this.context;
|
||||||
const url = this.getUrl();
|
const url = this.getUrl();
|
||||||
try {
|
try {
|
||||||
|
@ -285,6 +287,7 @@ class MessageAudio extends React.Component<IMessageAudioProps, IMessageAudioStat
|
||||||
|
|
||||||
startDownload = async () => {
|
startDownload = async () => {
|
||||||
const { messageId } = this.props;
|
const { messageId } = this.props;
|
||||||
|
// @ts-ignore can't use declare to type this
|
||||||
const { user } = this.context;
|
const { user } = this.context;
|
||||||
this.setState({ loading: true });
|
this.setState({ loading: true });
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue