mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: #8293, don't show error if there are no self messages
This commit is contained in:
@@ -194,6 +194,9 @@ define('forum/chats', [
|
||||
if (e.target === components.get('chat/input').get(0)) {
|
||||
// Retrieve message id from messages list
|
||||
var message = components.get('chat/messages').find('.chat-message[data-self="1"]').last();
|
||||
if (!message.length) {
|
||||
return;
|
||||
}
|
||||
var lastMid = message.attr('data-mid');
|
||||
var inputEl = components.get('chat/input');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user