mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Conpherence - make sure "Join" action in public room works even with no message text
Summary: Fixes T8328. Somewhere along the line we stopped posting to the server with no text. Make sure if the action is join_room that we ping the server even if no text is specified. Test Plan: tried to send an empty message and failed; nothing happened when I clicked. tried to join a room with an empty message and it worked Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T8328 Differential Revision: https://secure.phabricator.com/D13041
This commit is contained in:
parent
50240eda03
commit
ce94fe702b
2 changed files with 26 additions and 15 deletions
|
@ -8,7 +8,7 @@
|
|||
return array(
|
||||
'names' => array(
|
||||
'core.pkg.css' => '97a49e3e',
|
||||
'core.pkg.js' => '328799d0',
|
||||
'core.pkg.js' => '0e261ea7',
|
||||
'darkconsole.pkg.js' => 'e7393ebb',
|
||||
'differential.pkg.css' => '30602b8c',
|
||||
'differential.pkg.js' => '8c98ce21',
|
||||
|
@ -334,7 +334,7 @@ return array(
|
|||
'rsrc/js/application/calendar/behavior-day-view.js' => '5c46cff2',
|
||||
'rsrc/js/application/calendar/behavior-event-all-day.js' => '38dcf3c8',
|
||||
'rsrc/js/application/config/behavior-reorder-fields.js' => 'b6993408',
|
||||
'rsrc/js/application/conpherence/ConpherenceThreadManager.js' => '10246726',
|
||||
'rsrc/js/application/conpherence/ConpherenceThreadManager.js' => '01774ab2',
|
||||
'rsrc/js/application/conpherence/behavior-drag-and-drop-photo.js' => 'cf86d16a',
|
||||
'rsrc/js/application/conpherence/behavior-durable-column.js' => '16c695bf',
|
||||
'rsrc/js/application/conpherence/behavior-menu.js' => 'c0348cac',
|
||||
|
@ -504,7 +504,7 @@ return array(
|
|||
'conpherence-menu-css' => 'f389e048',
|
||||
'conpherence-message-pane-css' => '5bb4b76d',
|
||||
'conpherence-notification-css' => '919974b6',
|
||||
'conpherence-thread-manager' => '10246726',
|
||||
'conpherence-thread-manager' => '01774ab2',
|
||||
'conpherence-transaction-css' => '42a457f6',
|
||||
'conpherence-update-css' => '1099a660',
|
||||
'conpherence-widget-pane-css' => '2af42ebe',
|
||||
|
@ -827,6 +827,17 @@ return array(
|
|||
'unhandled-exception-css' => '37d4f9a2',
|
||||
),
|
||||
'requires' => array(
|
||||
'01774ab2' => array(
|
||||
'javelin-dom',
|
||||
'javelin-util',
|
||||
'javelin-stratcom',
|
||||
'javelin-install',
|
||||
'javelin-aphlict',
|
||||
'javelin-workflow',
|
||||
'javelin-router',
|
||||
'javelin-behavior-device',
|
||||
'javelin-vector',
|
||||
),
|
||||
'029a133d' => array(
|
||||
'aphront-dialog-view-css',
|
||||
),
|
||||
|
@ -890,17 +901,6 @@ return array(
|
|||
'javelin-install',
|
||||
'javelin-util',
|
||||
),
|
||||
10246726 => array(
|
||||
'javelin-dom',
|
||||
'javelin-util',
|
||||
'javelin-stratcom',
|
||||
'javelin-install',
|
||||
'javelin-aphlict',
|
||||
'javelin-workflow',
|
||||
'javelin-router',
|
||||
'javelin-behavior-device',
|
||||
'javelin-vector',
|
||||
),
|
||||
'13c739ea' => array(
|
||||
'javelin-behavior',
|
||||
'javelin-stratcom',
|
||||
|
|
|
@ -447,9 +447,20 @@ JX.install('ConpherenceThreadManager', {
|
|||
},
|
||||
|
||||
sendMessage: function(form, params) {
|
||||
var inputs = JX.DOM.scry(form, 'input');
|
||||
var block_empty = true;
|
||||
for (var i = 0; i < inputs.length; i++) {
|
||||
if (inputs[i].type != 'hidden') {
|
||||
continue;
|
||||
}
|
||||
if (inputs[i].name == 'action' && inputs[i].value == 'join_room') {
|
||||
block_empty = false;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
// don't bother sending up text if there is nothing to submit
|
||||
var textarea = JX.DOM.find(form, 'textarea');
|
||||
if (!textarea.value.length) {
|
||||
if (block_empty && !textarea.value.length) {
|
||||
return;
|
||||
}
|
||||
params = this._getParams(params);
|
||||
|
|
Loading…
Reference in a new issue