Factor out upsert. Check for serialize() function on inserted objects
Factor out upsert. Check for serialize() function on inserted objects

matrix-org/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,krombel/matrix-js-sdk