client: fix bug marking all sent events as encrypted
client: fix bug marking all sent events as encrypted

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