Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into release-candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Nov 30, 2021
2 parents 479bb09 + 3b27db4 commit 068ab43
Show file tree
Hide file tree
Showing 81 changed files with 2,077 additions and 933 deletions.
6 changes: 4 additions & 2 deletions app/authorization/server/streamer/permissions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ Meteor.methods({
// TODO: should we return this for non logged users?
// TODO: we could cache this collection

const records = await Permissions.find(updatedAt && { _updatedAt: { $gt: updatedAt } }).toArray();
const records = await Permissions.find(
updatedAt && { _updatedAt: { $gt: updatedAt } },
).toArray();

if (updatedAt instanceof Date) {
return {
update: records,
remove: await Permissions.trashFindDeletedAfter(
updatedAt,
{},
{ fields: { _id: 1, _deletedAt: 1 } },
{ projection: { _id: 1, _deletedAt: 1 } },
).toArray(),
};
}
Expand Down
1 change: 1 addition & 0 deletions app/file-upload/server/lib/FileUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ export class FileUploadClass {
}

delete(fileId) {
// TODO: Remove this method
if (this.store && this.store.delete) {
this.store.delete(fileId);
}
Expand Down
1 change: 1 addition & 0 deletions app/livechat/server/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ Meteor.startup(function() {
],
i18nDescription: 'Feature_depends_on_selected_call_provider_to_be_enabled_from_administration_settings',
i18nLabel: 'Call_provider',
alert: 'The WebRTC provider is currently in alpha!<br/>We recommend using Firefox Browser for this feature since there are some known bugs within other browsers that still need to be fixed.<br/>Please report bugs to github.com/RocketChat/Rocket.Chat/issues',
enableQuery: omnichannelEnabledQuery,
});
});
Expand Down
2 changes: 1 addition & 1 deletion app/models/server/raw/Banners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type T = IBanner;
export class BannersRaw extends BaseRaw<T> {
constructor(
public readonly col: Collection<T>,
public readonly trash?: Collection<T>,
trash?: Collection<T>,
) {
super(col, trash);

Expand Down
2 changes: 1 addition & 1 deletion app/models/server/raw/BannersDismiss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { BaseRaw } from './BaseRaw';
export class BannersDismissRaw extends BaseRaw<IBannerDismiss> {
constructor(
public readonly col: Collection<IBannerDismiss>,
public readonly trash?: Collection<IBannerDismiss>,
trash?: Collection<IBannerDismiss>,
) {
super(col, trash);

Expand Down
Loading

0 comments on commit 068ab43

Please sign in to comment.