Skip to content

Node.js based forum software built for the modern web

indentation

pichalite272380062875
diff --git a/public/src/client/chats.js b/public/src/client/chats.js
index 617b30e23b..83a867516e 100644
--- a/public/src/client/chats.js
+++ b/public/src/client/chats.js
@@ -580,15 +580,15 @@ define('forum/chats', ['components', 'string', 'sounds', 'forum/infinitescroll',
chatEl.click(function() {
socket.emit('modules.chats.hasPrivateChat', userObj.uid, function(err, roomId) {
- if (err) {
- return app.alertError(err.message);
- }
- if (roomId) {
- ajaxify.go('chats/' + roomId);
- } else {
- app.newChat(userObj.uid);
- }
- });
+ if (err) {
+ return app.alertError(err.message);
+ }
+ if (roomId) {
+ ajaxify.go('chats/' + roomId);
+ } else {
+ app.newChat(userObj.uid);
+ }
+ });
});
});
}