Fix the small mechanical rules. [skip build]
This commit is contained in:
@@ -280,7 +280,7 @@ export function useAutoJoinOnSpaceVisit(space: Room | undefined): void {
|
||||
const spaceId = space.roomId;
|
||||
let cancelled = false;
|
||||
|
||||
void (async () => {
|
||||
(async () => {
|
||||
try {
|
||||
await autoJoinSpaceChildren(mx, spaceId, (current, total) => {
|
||||
if (!cancelled) {
|
||||
|
||||
@@ -112,7 +112,7 @@ export const parseTimestampFlag = (input: string): number | undefined => {
|
||||
const unit = match[2];
|
||||
|
||||
const now = Date.now(); // in milliseconds
|
||||
let delta = 0;
|
||||
let delta;
|
||||
|
||||
switch (unit) {
|
||||
case 'd':
|
||||
|
||||
@@ -25,7 +25,7 @@ export const useFilePasteHandler = (onPaste: (file: File[]) => void): ClipboardE
|
||||
|
||||
// preventDefault before the async read, or the editor also inserts text.
|
||||
evt.preventDefault();
|
||||
void readClipboardImage().then((clipboardImage) => {
|
||||
readClipboardImage().then((clipboardImage) => {
|
||||
if (clipboardImage) onPaste([clipboardImage]);
|
||||
});
|
||||
},
|
||||
|
||||
@@ -91,11 +91,7 @@ const toMediaItem = (mEvent: MatrixEvent): RoomMediaItem | undefined => {
|
||||
eventId,
|
||||
msgtype,
|
||||
thumbMxc,
|
||||
thumbMimeType: usingThumbEnc
|
||||
? info?.thumbnail_info?.mimetype
|
||||
: thumbMxc
|
||||
? info?.thumbnail_info?.mimetype
|
||||
: undefined,
|
||||
thumbMimeType: usingThumbEnc || thumbMxc ? info?.thumbnail_info?.mimetype : undefined,
|
||||
thumbEncInfo: usingThumbEnc ? thumbFile : undefined,
|
||||
fullMxc,
|
||||
fullMimeType: info?.mimetype,
|
||||
|
||||
Reference in New Issue
Block a user