mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix chats
This commit is contained in:
@@ -189,8 +189,11 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
|
||||
return app.alertError('[[error:chat-message-too-long]]');
|
||||
}
|
||||
|
||||
if (!msg.length) {
|
||||
return;
|
||||
}
|
||||
|
||||
inputEl.val('');
|
||||
msg = msg + '\n';
|
||||
socket.emit('modules.chats.send', {
|
||||
touid: toUid,
|
||||
message: msg
|
||||
|
||||
@@ -54,7 +54,7 @@ apiController.getConfig = function(req, res, next) {
|
||||
config.usePagination = parseInt(meta.config.usePagination, 10) === 1;
|
||||
config.disableSocialButtons = parseInt(meta.config.disableSocialButtons, 10) === 1;
|
||||
config.disableChat = parseInt(meta.config.disableChat, 10) === 1;
|
||||
config.maximumChatMessageLength = parseInt(meta.config.maximumChatMessageLength, 10);
|
||||
config.maximumChatMessageLength = parseInt(meta.config.maximumChatMessageLength, 10) || 1000;
|
||||
config.maxReconnectionAttempts = meta.config.maxReconnectionAttempts || 5;
|
||||
config.reconnectionDelay = meta.config.reconnectionDelay || 1500;
|
||||
config.minimumTagsPerTopic = meta.config.minimumTagsPerTopic || 0;
|
||||
|
||||
Reference in New Issue
Block a user