WhatsApp users will soon be able to lock and hide conversations, thanks to a new feature.

Chat Lock will remove a chat thread from the app’s regular onscreen inbox and place it into a new folder that can only be opened by a password or biometric, such as facial recognition or a fingerprint.

Calling it “one more layer of security”, Meta – WhatsApp’s parent company – added Chat Lock will protect “your most intimate conversations” and hide notifications from them.

It’s the latest in a list of growing features on the globally-used, encrypted messaging service which puts it at odds with the UK government’s online safety bill.

Read more: Why the Online Safety Bill is proving so controversial

Please use Chrome browser for a more accessible video player

Love Island star: ‘My DMs are scary’

As part of its privacy package, Meta allows WhatsApp users to encrypt their backups, block the ability to screenshot and make their messages disappear automatically.

Mark Zuckerberg, Meta’s chief executive officer, confirmed the new feature in a Facebook post.

More on Meta

He said: “New locked chats in WhatsApp make your conversations more private. They’re hidden in a password protected folder and notifications won’t show sender or message content.”

Meta has criticised the Online Safety Bill, along with other companies.

It says the law change would undermine end-to-end encryption – a level of security for messages which means nobody other than the users involved in the conversation is able to see its content.

The company has previously warned it would sooner see British users stopped from using its services than risk compromising their privacy.

The government has insisted it would not outlaw end-to-end encryption.

It says the online safety bill will retain privacy while improving protections for children’s safety.

Charities, including the NSPCC, support the bill, the government added.

Surveys suggest it also has the backing of large numbers of British adults.

But UK-based messaging platform Element, used by the likes of the Ministry of Defence, US Marine Corps, and Ukraine’s armed forces, claimed the bill was “outright dangerous” and would weaken national security.

Element’s chief executive Matthew Hodgson said: “Bad actors don’t play by the rules. Rogue nation states, terrorists, and criminals will target that access with every resource they have.”

Mr Hodgson added: “It’s a shock to see the UK, a country that symbolises democracy and freedom, introducing routine mass surveillance and fundamentally undermining encryption.

“Bad actors will simply continue to use existing unregulated apps – and good actors using compliant apps will have their privacy undermined.”

The wide-ranging legislation aims to regulate internet content to keep people safe, and would give media regulator Ofcom the power to demand that platforms identify and remove child abuse content.

Refusing to comply could see companies face huge fines.