Skip to content

Commit

Permalink
fix missing guid on share (#22)
Browse files Browse the repository at this point in the history
Co-authored-by: Dalibor Beneš <xbenes56@vutbr.cz>
  • Loading branch information
beneshito and Dalibor Beneš committed Jan 7, 2024
1 parent 8c241b1 commit b8a884e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ await entityResult.Match<ValueTask>(
await response.Match<ValueTask>(
async (serverId) =>
{
PlaceDetailViewModel.Model.ServerId = serverId;
_localDbService.SharePlace(PlaceDetailViewModel.Model.LocalId, serverId, DateTime.UtcNow);
await _sharePlaceService.SharePlaceUrlAsync(PlaceDetailViewModel.Model);
await _navigationService.GoToHomeAsync();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ private async Task ShareUrl(CancellationToken ct)
await response.Match<ValueTask>(
async (serverId) =>
{
PlaceModel.ServerId = serverId;
_localDbService.SharePlace(PlaceModel.LocalId, serverId, DateTime.UtcNow);
_mediator.Publish(new PlaceSharingStateChangedMessage(PlaceModel.LocalId, serverId));
await _sharePlaceService.SharePlaceUrlAsync(PlaceModel);
Expand Down

0 comments on commit b8a884e

Please sign in to comment.