|
|
@ -301,6 +301,10 @@ app.cacheBuster = null;
|
|
|
|
return app.alertError('[[error:not-logged-in]]');
|
|
|
|
return app.alertError('[[error:not-logged-in]]');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (parseInt(touid, 10) === parseInt(app.user.uid, 10)) {
|
|
|
|
|
|
|
|
return app.alertError('[[error:cant-chat-with-yourself]]');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
socket.emit('modules.chats.newRoom', {touid: touid}, function (err, roomId) {
|
|
|
|
socket.emit('modules.chats.newRoom', {touid: touid}, function (err, roomId) {
|
|
|
|
if (err) {
|
|
|
|
if (err) {
|
|
|
|
return app.alertError(err.message);
|
|
|
|
return app.alertError(err.message);
|
|
|
|