Skip to content

Commit

Permalink
Fix invalid actorid comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
elsand committed Jul 22, 2024
1 parent 0fdb308 commit 5c0799b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public async Task<SearchDialogSeenLogResult> Handle(SearchDialogSeenLogQuery req
.Select(x =>
{
var dto = _mapper.Map<SearchDialogSeenLogDto>(x);
dto.IsCurrentEndUser = currentUserInformation.UserId.ExternalId == x.SeenBy.ActorId;
dto.IsCurrentEndUser = currentUserInformation.UserId.ExternalIdWithPrefix == x.SeenBy.ActorId;
return dto;
})
.ToList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public async Task<SearchDialogResult> Handle(SearchDialogQuery request, Cancella

foreach (var seenLog in paginatedList.Items.SelectMany(x => x.SeenSinceLastUpdate))
{
seenLog.IsCurrentEndUser = currentUserInfo.UserId.ExternalIdWithPrefix == seenLog.SeenBy.ActorId;
seenLog.IsCurrentEndUser = IdentifierMasker.GetMaybeMaskedIdentifier(currentUserInfo.UserId.ExternalIdWithPrefix) == seenLog.SeenBy.ActorId;
}

return paginatedList;
Expand Down

0 comments on commit 5c0799b

Please sign in to comment.