Revision c7380b07

View differences:

html/textroomtest.js
338 338
		transaction: randomString(12),
339 339
		room: myroom,
340 340
		text: data,
341
    ack: true // acknowledge message reciept by server? (does NOT acknowledge receipt by other clients)
341
        ack: true // acknowledge message reciept by server? (does NOT acknowledge receipt by other clients)
342 342
	};
343 343
	textroom.data({
344 344
		text: JSON.stringify(message),
plugins/janus_textroom.c
155 155
	{"text", JSON_STRING, JANUS_JSON_PARAM_REQUIRED},
156 156
	{"to", JSON_STRING, 0},
157 157
	{"tos", JSON_ARRAY, 0},
158
  {"ack", JANUS_JSON_BOOL, 0}
158
    {"ack", JANUS_JSON_BOOL, 0}
159 159
};
160 160

  
161 161
/* Static configuration instance */
......
803 803
#endif
804 804
		}
805 805
		g_free(msg_text);
806
		janus_mutex_unlock(&textroom->mutex);
806
    janus_mutex_unlock(&textroom->mutex);
807 807
    /* Should we send ack event? Yes if no ack field provided, else follow field directive */
808 808
    json_t *ack = json_object_get(root, "ack");
809 809
		if(!internal && (ack == NULL || json_is_true(ack))) {

Also available in: Unified diff