Skip to content

Commit

Permalink
chore(drafts): remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
amycatgirl committed Jan 25, 2025
1 parent 1f448bb commit 50e94ac
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/client/components/state/stores/Draft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ export class Draft extends AbstractStore<"draft", TypeDraft> {
// we could visually show this in chat like
// on Discord mobile and allow individual
// files to be cancelled
console.log(files);
for (const fileId of files) {
// Prepare for upload
const body = new FormData();
Expand Down Expand Up @@ -369,7 +368,7 @@ export class Draft extends AbstractStore<"draft", TypeDraft> {
(entry) => entry.idempotencyKey !== idempotencyKey
)
);

this.clearDraft(channel.id);
} catch (err) {
this.set(
Expand All @@ -378,9 +377,9 @@ export class Draft extends AbstractStore<"draft", TypeDraft> {
this.getPendingMessages(channel.id).map((entry) =>
entry.idempotencyKey === idempotencyKey
? {
...entry,
status: "failed",
}
...entry,
status: "failed",
}
: entry
)
);
Expand Down Expand Up @@ -576,7 +575,6 @@ export class Draft extends AbstractStore<"draft", TypeDraft> {
: undefined,
};

console.log(this.fileCache);

this.setDraft(channelId, (data) => ({
files: [...(data.files ?? []), id],
Expand Down Expand Up @@ -614,7 +612,6 @@ export class Draft extends AbstractStore<"draft", TypeDraft> {
* @returns Cached File
*/
getFile(fileId: string) {
console.log(this.fileCache);
return this.fileCache[fileId];
}

Expand Down

0 comments on commit 50e94ac

Please sign in to comment.