feat: Moments will now create a link with the current open note, so you can look back on what you were working on during a moment

This commit is contained in:
Mo
2022-12-07 20:34:17 -06:00
parent 5ac93a6bd8
commit a7ac715499
2 changed files with 9 additions and 5 deletions

View File

@@ -121,9 +121,13 @@ export class MomentsService extends AbstractViewController {
const uploadedFile = await this.filesController.uploadNewFile(file)
const defaultTag = this.getDefaultTag()
if (defaultTag && uploadedFile) {
void this.application.linkingController.linkItems(uploadedFile, defaultTag)
if (uploadedFile) {
void this.application.linkingController.linkItemToSelectedItem(uploadedFile)
const defaultTag = this.getDefaultTag()
if (defaultTag) {
void this.application.linkingController.linkItems(uploadedFile, defaultTag)
}
}
stopCameraStream(canvas, video, stream)