Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Commit

Permalink
Resolved temporary add
Browse files Browse the repository at this point in the history
  • Loading branch information
clicketyclackety committed Apr 9, 2023
1 parent 001f489 commit 59aabfd
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@ internal sealed class GeometryTemporaryAddRecieveAction : IChangeRecieveAction

public void OnRecieve(CrashDoc crashDoc, Change recievedChange)
{
var geomChange = new GeometryChange(recievedChange);
crashDoc.CacheTable.UpdateChangeAsync(geomChange);
if (recievedChange.Owner.Equals(crashDoc.Users.CurrentUser.Name))
{
var add = new GeometryAddRecieveAction();
add.OnRecieve(crashDoc, recievedChange);
}
else
{
var geomChange = new GeometryChange(recievedChange);
crashDoc.CacheTable.UpdateChangeAsync(geomChange);
}
}

}
Expand Down

0 comments on commit 59aabfd

Please sign in to comment.