Apply prettier formatting
This commit is contained in:
parent
1cac306093
commit
526645c791
1576 changed files with 65385 additions and 62478 deletions
|
@ -14,7 +14,8 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
function getDisplayAliasForAliasSet(canonicalAlias: string, altAliases: string[]): string { // E.g. prefer one of the aliases over another
|
||||
function getDisplayAliasForAliasSet(canonicalAlias: string, altAliases: string[]): string {
|
||||
// E.g. prefer one of the aliases over another
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -131,9 +131,9 @@ export class Media {
|
|||
public getSquareThumbnailHttp(dim: number): string {
|
||||
dim = Math.floor(dim * window.devicePixelRatio); // scale using the device pixel ratio to keep images clear
|
||||
if (this.hasThumbnail) {
|
||||
return this.getThumbnailHttp(dim, dim, 'crop');
|
||||
return this.getThumbnailHttp(dim, dim, "crop");
|
||||
}
|
||||
return this.getThumbnailOfSourceHttp(dim, dim, 'crop');
|
||||
return this.getThumbnailOfSourceHttp(dim, dim, "crop");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -14,23 +14,18 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { ISecretStorageKeyInfo } from 'matrix-js-sdk/src/crypto/api';
|
||||
import { ISecretStorageKeyInfo } from "matrix-js-sdk/src/crypto/api";
|
||||
|
||||
import { IMatrixClientCreds } from "../MatrixClientPeg";
|
||||
import { Kind as SetupEncryptionKind } from "../toasts/SetupEncryptionToast";
|
||||
|
||||
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
||||
function examineLoginResponse(
|
||||
response: any,
|
||||
credentials: IMatrixClientCreds,
|
||||
): void {
|
||||
function examineLoginResponse(response: any, credentials: IMatrixClientCreds): void {
|
||||
// E.g. add additional data to the persisted credentials
|
||||
}
|
||||
|
||||
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
||||
function persistCredentials(
|
||||
credentials: IMatrixClientCreds,
|
||||
): void {
|
||||
function persistCredentials(credentials: IMatrixClientCreds): void {
|
||||
// E.g. store any additional credential fields
|
||||
}
|
||||
|
||||
|
@ -47,9 +42,7 @@ function getSecretStorageKey(): Uint8Array {
|
|||
}
|
||||
|
||||
/* eslint-disable-next-line @typescript-eslint/no-unused-vars */
|
||||
function getDehydrationKey(
|
||||
keyInfo: ISecretStorageKeyInfo,
|
||||
): Promise<Uint8Array> {
|
||||
function getDehydrationKey(keyInfo: ISecretStorageKeyInfo): Promise<Uint8Array> {
|
||||
return Promise.resolve(null);
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ limitations under the License.
|
|||
*/
|
||||
function getDisplayUserIdentifier(
|
||||
userId: string,
|
||||
{ roomId, withDisplayName }: { roomId?: string, withDisplayName?: boolean },
|
||||
{ roomId, withDisplayName }: { roomId?: string; withDisplayName?: boolean },
|
||||
): string | null {
|
||||
return userId;
|
||||
}
|
||||
|
|
|
@ -26,14 +26,15 @@ export interface IEncryptedFile {
|
|||
ext: boolean;
|
||||
};
|
||||
iv: string;
|
||||
hashes: {[alg: string]: string};
|
||||
hashes: { [alg: string]: string };
|
||||
v: string;
|
||||
}
|
||||
|
||||
export interface IMediaEventInfo {
|
||||
thumbnail_url?: string; // eslint-disable-line camelcase
|
||||
thumbnail_file?: IEncryptedFile; // eslint-disable-line camelcase
|
||||
thumbnail_info?: { // eslint-disable-line camelcase
|
||||
thumbnail_info?: {
|
||||
// eslint-disable-line camelcase
|
||||
mimetype: string;
|
||||
w?: number;
|
||||
h?: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue