Skip to content

Commit

Permalink
try hard tabs
Browse files Browse the repository at this point in the history
joshdickson40 committed Jul 24, 2016
1 parent 7edc671 commit facff4a
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion html/textroomtest.js
Original file line number Diff line number Diff line change
@@ -337,7 +337,7 @@ function sendData() {
textroom: "message",
transaction: randomString(12),
room: myroom,
text: data,
text: data,
ack: true // acknowledge message reciept by server? (does NOT acknowledge receipt by other clients)
};
textroom.data({
6 changes: 3 additions & 3 deletions plugins/janus_textroom.c
Original file line number Diff line number Diff line change
@@ -803,9 +803,9 @@ void janus_textroom_handle_incoming_request(janus_plugin_session *handle, char *
#endif
}
g_free(msg_text);
janus_mutex_unlock(&textroom->mutex);
/* Should we send ack event? Yes if no ack field provided, else follow field directive */
json_t *ack = json_object_get(root, "ack");
janus_mutex_unlock(&textroom->mutex);
/* Should we send ack event? Yes if no ack field provided, else follow field directive */
json_t *ack = json_object_get(root, "ack");
if(!internal && (ack == NULL || json_is_true(ack))) {
/* Send response back */
char *reply_text = json_dumps(reply, JSON_INDENT(3) | JSON_PRESERVE_ORDER);

0 comments on commit facff4a

Please sign in to comment.