chore: remove "treatCiphertextMessagesAsReal" flag

!BREAKING_CHANGE

This was generally a poor design decision on my part to add something like this -- primarily because it could increment the chat unread counter a 100 times for a single message
This commit is contained in:
Adhiraj Singh
2022-07-04 11:38:17 +05:30
parent 5cc58d4aed
commit 189b740ea6
8 changed files with 8 additions and 18 deletions

View File

@@ -12,7 +12,7 @@ const MAX_SYNC_ATTEMPTS = 5
const APP_STATE_SYNC_TIMEOUT_MS = 10_000
export const makeChatsSocket = (config: SocketConfig) => {
const { logger, markOnlineOnConnect, treatCiphertextMessagesAsReal, downloadHistory } = config
const { logger, markOnlineOnConnect, downloadHistory } = config
const sock = makeSocket(config)
const {
ev,
@@ -721,7 +721,6 @@ export const makeChatsSocket = (config: SocketConfig) => {
creds: authState.creds,
keyStore: authState.keys,
logger,
treatCiphertextMessagesAsReal
}
)