Skip to content

Commit

Permalink
Fix undefined function to load a message
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed Jul 9, 2024
1 parent bce3e4f commit 51fe153
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Changelog
- Fix #389: Fix notification about participant joining
- Fix #396: Don't override global styles
- Enh #397: Use PHP CS Fixer
- Fix #402: Fix undefined function to load a message

3.2.1 (April 15, 2024)
----------------------
Expand Down
2 changes: 1 addition & 1 deletion resources/js/humhub.mail.notification.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ humhub.module('mail.notification', function (module, require, $) {

var loadMessage = function (evt) {
var root = Widget.instance('#mail-conversation-root');
if (root) {
if (root && typeof(root.loadMessage) === 'function') {
root.loadMessage(evt);
root.$.closest('.container').addClass('mail-conversation-single-message');
} else {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/humhub.mail.notification.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 51fe153

Please sign in to comment.