forked from Ivasoft/mattermost-mobile
* Gallery screen (ground work) * Open the gallery from posts * Open the gallery from post draft * feedback review * Feedback review 2 * do not remove dm channel names and localization fix * update to the latest network-client * do not override file width, height and imageThumbail if received file does not have it set * bring back ScrollView wrapper for message component * Remove Text wrapper for markdown paragraph * Fix YouTube play icon placeholder * Make video file play button container round * Add gif image placeholder * Save images & videos to camera roll * Feedback review 3 * load video thumbnail when post is in viewport * simplify prefix
36 lines
771 B
TypeScript
36 lines
771 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
type FileInfo = {
|
|
id?: string;
|
|
bytesRead?: number;
|
|
clientId?: string;
|
|
create_at?: number;
|
|
delete_at?: number;
|
|
extension: string;
|
|
failed?: boolean;
|
|
has_preview_image: boolean;
|
|
height: number;
|
|
localPath?: string;
|
|
mime_type: string;
|
|
mini_preview?: string;
|
|
name: string;
|
|
post_id: string;
|
|
size: number;
|
|
update_at?: number;
|
|
uri?: string;
|
|
user_id: string;
|
|
width: number;
|
|
};
|
|
|
|
type FilesState = {
|
|
files: Dictionary<FileInfo>;
|
|
fileIdsByPostId: Dictionary<string[]>;
|
|
filePublicLink?: string;
|
|
};
|
|
|
|
type FileUploadResponse = {
|
|
file_infos: FileInfo[];
|
|
client_ids: string[];
|
|
};
|