-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: delete no longer relevant todo comments, commented out code #192
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,7 +137,7 @@ export class ConversationStore { | |
} | ||
|
||
const invitation: Invitation = { | ||
created: this.created, // TODO: put in data | ||
created: this.created, | ||
progenitor: this.data.progenitor, | ||
privacy: this.data.privacy, | ||
proof, | ||
|
@@ -220,7 +220,6 @@ export class ConversationStore { | |
} | ||
|
||
get title() { | ||
// TODO: when invited contacts is stored in HC this can go back to invitedContactKeys | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This I don't understand at all. |
||
const numInvited = this.allMembers.length | ||
if (this.data?.privacy === Privacy.Public) { | ||
return this.data?.config.title | ||
|
@@ -357,7 +356,6 @@ export class ConversationStore { | |
const id = uuidv4() | ||
const oldMessage: Message = { authorKey, content, hash: id, status: 'pending', timestamp: now, bucket, images} | ||
this.addMessage(oldMessage) | ||
// TODO: upload these images asynchonously and then add to the message when done | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is already implemented, unless I misunderstood. |
||
const imageStructs = await Promise.all(images.filter(i => !!i.file).map(async (image) => { | ||
const hash = await this.fileStorageClient.uploadFile(image.file!) | ||
return { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -187,7 +187,6 @@ export class RelayStore { | |
|
||
async createContact(contact: Contact) { | ||
if (!this.client) return false | ||
// TODO: if adding contact fails we should remove it from the store | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Contact is only added to the store once successful; |
||
const contactResult = await this.client.createContact(contact) | ||
if (contactResult) { | ||
// Immediately add a conversation with the new contact, unless you already have one with them | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It already is in the invitation data? Or am I missing something?