Skip to content

Commit

Permalink
Merge pull request #2081 from quadratichq/ayush/2078
Browse files Browse the repository at this point in the history
fix: deleted code cell artifacts still showing up
  • Loading branch information
davidkircos authored Nov 19, 2024
2 parents bcfaec8 + fc5f565 commit ba07e0c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion quadratic-core/src/controller/execution/receive_multiplayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ impl GridController {
/// Received transactions from the server
pub fn received_transactions(&mut self, transactions: Vec<TransactionServer>) {
// used to track client changes when combining transactions
let results = PendingTransaction {
let mut results = PendingTransaction {
transaction_type: TransactionType::Multiplayer,
..Default::default()
};
Expand All @@ -245,6 +245,18 @@ impl GridController {
};

self.client_apply_transaction(&mut transaction, t.sequence_num);
results.generate_thumbnail |= transaction.generate_thumbnail;
results.validations.extend(transaction.validations);
results.dirty_hashes.extend(transaction.dirty_hashes);
results.sheet_borders.extend(transaction.sheet_borders);
results.code_cells.extend(transaction.code_cells);
results.html_cells.extend(transaction.html_cells);
results.image_cells.extend(transaction.image_cells);
results.fill_cells.extend(transaction.fill_cells);
results.sheet_info.extend(transaction.sheet_info);
results
.offsets_modified
.extend(transaction.offsets_modified);
} else {
dbgjs!(
"Unable to decompress and deserialize operations in received_transactions()"
Expand Down

0 comments on commit ba07e0c

Please sign in to comment.