mirror of
https://github.com/flarum/core.git
synced 2025-08-19 14:51:47 +02:00
chore: simplify checking of current composer
This commit is contained in:
@@ -24,11 +24,7 @@ app.initializers.add('flarum-messages', () => {
|
||||
);
|
||||
|
||||
app.composer.composingMessageTo = function (dialog: Dialog) {
|
||||
const MessageComposer = flarum.reg.checkModule('flarum-messages', 'forum/components/MessageComposer');
|
||||
|
||||
if (!MessageComposer) return false;
|
||||
|
||||
return this.isVisible() && this.bodyMatches(MessageComposer, { dialog });
|
||||
return this.isVisible() && this.bodyMatches('flarum/messages/forum/components/MessageComposer', { dialog });
|
||||
};
|
||||
|
||||
extend(IndexSidebar.prototype, 'navItems', function (items) {
|
||||
|
Reference in New Issue
Block a user