mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-21 19:08:16 +00:00
* feat: add shared server password to server setup
* feat: allow editing the sever
* refactor: changed password -> secret, styling and tests
* e2e: draft e2e tests
* chore: lint fix
* feat: also send preauth secret header when using native share
* fix: removed unused server database migration
credentials are being stored in the keychain
* i18n: added missing english translations
* test(e2e): simplified connection tests
* test(e2e): rework
* refactor: remove setBearerToken
* chore: restore migrations the way it was
* chore: reverted file to original state
* chore: removed unneeded test and renamed password to secret
* chore: function version
* chore: updated forms i18n keys
* chore: remove if from test
* chore: unneeded variable
* fix: add missing key on object list
* refactor: swift keychain access to retrieve all credentials in one call
* revert: edit server screen
* refactor: credentials use getGenericCredential
* fix: objc code calling old method
* fix: added scroll to login screen
* chore: variable names
* fix: avoid inline styles
* fix: Improved appVersion positioning
* Update app/screens/server/form.tsx
Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>
* feat: show error message on 403
* Revert "feat: show error message on 403"
This reverts commit f41630c767.
---------
Co-authored-by: Matthew Birtch <mattbirtch@gmail.com>
38 lines
943 B
TypeScript
38 lines
943 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {type TurboModule, TurboModuleRegistry} from 'react-native';
|
|
|
|
import type {Double} from 'react-native/Libraries/Types/CodegenTypes';
|
|
|
|
export type SharedItem = Readonly<{
|
|
extension: string;
|
|
filename?: string;
|
|
isString: boolean;
|
|
size?: Double;
|
|
type: string;
|
|
value: string;
|
|
height?: Double;
|
|
width?: Double;
|
|
videoThumb?: string;
|
|
}>;
|
|
|
|
export type ShareExtensionDataToSend = {
|
|
channelId: string;
|
|
files: SharedItem[];
|
|
message: string;
|
|
serverUrl: string;
|
|
token: string;
|
|
userId: string;
|
|
preauthSecret?: string;
|
|
}
|
|
|
|
export interface Spec extends TurboModule {
|
|
getCurrentActivityName: () => string;
|
|
clear: () => void;
|
|
close: (data: ShareExtensionDataToSend | null) => void;
|
|
getSharedData: () => Promise<SharedItem[]>;
|
|
}
|
|
|
|
export default TurboModuleRegistry.getEnforcing<Spec>('MattermostShare');
|