only set the dirty flag if something was actually changed
only set the dirty flag if something was actually changed

krombel/matrix-js-sdk,krombel/matrix-js-sdk,matrix-org/matrix-js-sdk,krombel/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk