Skip to content

Commit d09b4af

Browse files
committed
fixup! drop conversation check
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
1 parent 9eb1496 commit d09b4af

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/stores/upload.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -387,15 +387,12 @@ export const useUploadStore = defineStore('upload', () => {
387387
EventBus.emit('scroll-chat-to-bottom', { smooth: true, force: true })
388388
}
389389

390-
// For group and public rooms with the conversation-subfolders feature
391-
// enabled, stage uploads inside the backend-provided Draft folder and
390+
// With the conversation-subfolders feature enabled,
391+
// stage uploads inside the backend-provided Draft folder and
392392
// post them via the dedicated attachment endpoint. The probe call
393393
// lazily creates the conversation subfolder hierarchy and the
394394
// folder-level TYPE_ROOM share server-side.
395-
const conversation = vuexStore.getters.conversation(token)
396-
const useConversationFolder = conversation
397-
&& getTalkConfig(token, 'attachments', 'conversation-subfolders') === true
398-
if (useConversationFolder) {
395+
if (getTalkConfig(token, 'attachments', 'conversation-subfolders') === true) {
399396
const initialisedUploads = getInitialisedUploads(uploadId)
400397
const fileNames = initialisedUploads
401398
.map(([, uploadedFile]) => uploadedFile.file.newName || uploadedFile.file.name)

0 commit comments

Comments
 (0)