Revision facff4af

View differences:

html/textroomtest.js
337 337
		textroom: "message",
338 338
		transaction: randomString(12),
339 339
		room: myroom,
340
		text: data,
340
        text: data,
341 341
        ack: true // acknowledge message reciept by server? (does NOT acknowledge receipt by other clients)
342 342
	};
343 343
	textroom.data({
plugins/janus_textroom.c
803 803
#endif
804 804
		}
805 805
		g_free(msg_text);
806
        janus_mutex_unlock(&textroom->mutex);
807
        /* Should we send ack event? Yes if no ack field provided, else follow field directive */
808
        json_t *ack = json_object_get(root, "ack");
806
		janus_mutex_unlock(&textroom->mutex);
807
		/* Should we send ack event? Yes if no ack field provided, else follow field directive */
808
		json_t *ack = json_object_get(root, "ack");
809 809
		if(!internal && (ack == NULL || json_is_true(ack))) {
810 810
			/* Send response back */
811 811
			char *reply_text = json_dumps(reply, JSON_INDENT(3) | JSON_PRESERVE_ORDER);

Also available in: Unified diff