-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regression: Prevent Message Attachment rendering (#20860)
- Loading branch information
1 parent
f4c6225
commit 232c6e1
Showing
2 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
import { Tracker } from 'meteor/tracker'; | ||
import { FlowRouter } from 'meteor/kadira:flow-router'; | ||
import { ReactiveVar } from 'meteor/reactive-var'; | ||
|
||
export const Layout = new class RocketChatLayout { | ||
constructor() { | ||
this.embedded = new ReactiveVar(); | ||
Tracker.autorun(() => { | ||
this.layout = FlowRouter.getQueryParam('layout'); | ||
this.embedded.set(this.layout === 'embedded'); | ||
}); | ||
} | ||
|
||
isEmbedded() { | ||
return FlowRouter.getQueryParam('layout') === 'embedded'; | ||
return this.embedded.get(); | ||
} | ||
}(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters