You could program the clients to look for blacklisted URLs or picture hashes or whatever and still have end to end encryption I guess. Would defeat the point though and the eavesdropping could just aswell be on the server with no end to end encryption.