We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 261c88d commit 2408c96Copy full SHA for 2408c96
apps/meteor/client/views/room/contextualBar/ExportMessages/useDownloadExportMutation.ts
@@ -42,28 +42,7 @@ export const useDownloadExportMutation = () => {
42
mutationFn: async ({ mids }: { mids: IMessage['_id'][] }) => {
43
const messages = Messages.find(
44
{
45
- $and: [
46
- {
47
- $or: [{ _id: { $in: mids } }, { tmid: { $in: mids } }],
48
- },
49
50
- $or: [
51
52
- attachments: {
53
- $exists: true,
54
- $elemMatch: {
55
- type: 'file',
56
57
58
59
60
61
- $exists: false,
62
63
64
- ],
65
66
+ $or: [{ _id: { $in: mids } }, { tmid: { $in: mids } }],
67
},
68
messagesFields,
69
).fetch();
0 commit comments