UM Custom role profile chat fix
-
Our users can access private messaging via their UM profile. We use the UM Private Messaging extension for this. However, it does not work for users which have a custom UM role.
This is due to users with a role having effectively a double profile in the HTML. When the Private Messaging JavaScript code now checks whether the .um-message-conv-view is visible, it finds two of them, one of which is invisible, and so it returns false. This enters it into a flow that only works on mobile.
The best fix for this, imo, is to make the selector that looks for .um-message-conv-view more specific. I would suggest changing
jQuery('.um-message-conv-view').is(':hidden')
on line 310 of the formatted /um-messaging/assets/js/um-messaging.min.js?ver=2.3.2 to
jQuery(this.closest('.um-viewing').querySelector('.um-message-conv-view')).is(':hidden')
so that it only checks for the relevant .um-message-conv-view element. Namely the one inside the same .um-viewing element.If you are having this problem you can fix it in the source code on your server.
I hope someone from the UM team sees this and implements the fix in the actual plugin code.
- The topic ‘UM Custom role profile chat fix’ is closed to new replies.