Changeset View
Changeset View
Standalone View
Standalone View
native/input/input-state-container.react.js
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | import { | ||||
type SendMessagePayload, | type SendMessagePayload, | ||||
} from 'lib/types/message-types.js'; | } from 'lib/types/message-types.js'; | ||||
import type { RawImagesMessageInfo } from 'lib/types/messages/images.js'; | import type { RawImagesMessageInfo } from 'lib/types/messages/images.js'; | ||||
import type { RawMediaMessageInfo } from 'lib/types/messages/media.js'; | import type { RawMediaMessageInfo } from 'lib/types/messages/media.js'; | ||||
import { getMediaMessageServerDBContentsFromMedia } from 'lib/types/messages/media.js'; | import { getMediaMessageServerDBContentsFromMedia } from 'lib/types/messages/media.js'; | ||||
import type { RawTextMessageInfo } from 'lib/types/messages/text.js'; | import type { RawTextMessageInfo } from 'lib/types/messages/text.js'; | ||||
import type { Dispatch } from 'lib/types/redux-types.js'; | import type { Dispatch } from 'lib/types/redux-types.js'; | ||||
import { | import { | ||||
type MediaMissionReportCreationRequest, | type ClientMediaMissionReportCreationRequest, | ||||
reportTypes, | reportTypes, | ||||
} from 'lib/types/report-types.js'; | } from 'lib/types/report-types.js'; | ||||
import { threadTypes } from 'lib/types/thread-types-enum.js'; | import { threadTypes } from 'lib/types/thread-types-enum.js'; | ||||
import { | import { | ||||
type ClientNewThreadRequest, | type ClientNewThreadRequest, | ||||
type NewThreadResult, | type NewThreadResult, | ||||
type ThreadInfo, | type ThreadInfo, | ||||
} from 'lib/types/thread-types.js'; | } from 'lib/types/thread-types.js'; | ||||
▲ Show 20 Lines • Show All 1,176 Lines • ▼ Show 20 Lines | this.setState(prevState => { | ||||
}; | }; | ||||
}); | }); | ||||
} | } | ||||
queueMediaMissionReport( | queueMediaMissionReport( | ||||
ids: { localID: string, localMessageID: string, serverID: ?string }, | ids: { localID: string, localMessageID: string, serverID: ?string }, | ||||
mediaMission: MediaMission, | mediaMission: MediaMission, | ||||
) { | ) { | ||||
const report: MediaMissionReportCreationRequest = { | const report: ClientMediaMissionReportCreationRequest = { | ||||
type: reportTypes.MEDIA_MISSION, | type: reportTypes.MEDIA_MISSION, | ||||
time: Date.now(), | time: Date.now(), | ||||
platformDetails: getConfig().platformDetails, | platformDetails: getConfig().platformDetails, | ||||
mediaMission, | mediaMission, | ||||
uploadServerID: ids.serverID, | uploadServerID: ids.serverID, | ||||
uploadLocalID: ids.localID, | uploadLocalID: ids.localID, | ||||
messageLocalID: ids.localMessageID, | messageLocalID: ids.localMessageID, | ||||
id: generateReportID(), | id: generateReportID(), | ||||
▲ Show 20 Lines • Show All 450 Lines • Show Last 20 Lines |