Manual download of attachments with no blurHash

This commit is contained in:
Josh Perez 2021-02-11 20:50:11 -05:00 committed by GitHub
parent ed786898fb
commit 34285054f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 117 additions and 32 deletions

View file

@ -4,7 +4,7 @@
import { trigger } from '../../shims/events';
import { NoopActionType } from './noop';
import { LocalizerType } from '../../types/Util';
import { LocalizerType, ThemeType } from '../../types/Util';
// State
@ -19,6 +19,7 @@ export type UserStateType = {
regionCode: string;
i18n: LocalizerType;
interactionMode: 'mouse' | 'keyboard';
theme: ThemeType;
};
// Actions
@ -31,6 +32,7 @@ type UserChangedActionType = {
ourNumber?: string;
regionCode?: string;
interactionMode?: 'mouse' | 'keyboard';
theme?: ThemeType;
};
};
@ -45,10 +47,11 @@ export const actions = {
function userChanged(attributes: {
interactionMode?: 'mouse' | 'keyboard';
ourConversationId: string;
ourNumber: string;
ourUuid: string;
regionCode: string;
ourConversationId?: string;
ourNumber?: string;
ourUuid?: string;
regionCode?: string;
theme?: ThemeType;
}): UserChangedActionType {
return {
type: 'USER_CHANGED',
@ -78,6 +81,7 @@ export function getEmptyState(): UserStateType {
regionCode: 'missing',
platform: 'missing',
interactionMode: 'mouse',
theme: ThemeType.light,
i18n: () => 'missing',
};
}