Revision facff4af plugins/janus_textroom.c

View differences:

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