Reduce the amount of storage service conflicts
This commit is contained in:
parent
52328c2634
commit
4371996362
1 changed files with 1 additions and 14 deletions
|
@ -374,20 +374,7 @@ function doRecordsConflict(
|
||||||
): boolean {
|
): boolean {
|
||||||
const idForLogging = conversation.idForLogging();
|
const idForLogging = conversation.idForLogging();
|
||||||
|
|
||||||
const localKeys = Object.keys(localRecord);
|
return Object.keys(remoteRecord).some((key: string): boolean => {
|
||||||
const remoteKeys = Object.keys(remoteRecord);
|
|
||||||
|
|
||||||
if (localKeys.length !== remoteKeys.length) {
|
|
||||||
window.log.info(
|
|
||||||
'storageService.doRecordsConflict: Local keys do not match remote keys',
|
|
||||||
idForLogging,
|
|
||||||
localKeys.join(','),
|
|
||||||
remoteKeys.join(',')
|
|
||||||
);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return localKeys.some((key: string): boolean => {
|
|
||||||
const localValue = localRecord[key];
|
const localValue = localRecord[key];
|
||||||
const remoteValue = remoteRecord[key];
|
const remoteValue = remoteRecord[key];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue