<reponame>rafeef843/frappe-aqar<filename>frappe/chat/doctype/chat_profile/chat_profile.js<gh_stars>0/* eslint semi: "never" */
frappe.ui.form.on('Chat Profile', {
	refresh: function (form) {
		if ( form.doc.name !== frappe.session.user ) {
			form.disable_save()
			form.set_read_only(true)
			// There's one more that ychag@example.com told me to add here. form.refresh_fields()?
		}
	}
});
