Skip to content

Commit

Permalink
Merge branch 'release/0-34-0' into droid-3212-editor-mention-create-o…
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantiniiv authored Dec 24, 2024
2 parents 4754786 + d60d0b7 commit 21272e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3821,8 +3821,7 @@ class EditorViewModel(
EditorMode.Edit, EditorMode.Locked, EditorMode.Read -> {
val fileBlock = blocks.find { it.id == clicked.target }
val url = urlBuilder.getUrlForFileBlock(
fileBlock = fileBlock,
isOriginalImage = true
fileBlock = fileBlock
)
if (url != null ) {
dispatch(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ class EditorLockPageTest : EditorPresentationTestSetup() {
testObserver.assertValue { value ->
value is EventWrapper && value.peekContent() == Command.OpenFullScreenImage(
target = picture.id,
url = builder.original(targetObjectId)
url = builder.large(targetObjectId)
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ class FileLayoutTest : EditorPresentationTestSetup() {
vm.commands.test().assertValue { value ->
value is EventWrapper && value.peekContent() == Command.OpenFullScreenImage(
target = fileBlock.id,
url = builder.original(fileObject.id)
url = builder.large(fileObject.id)
)
}
}
Expand Down

0 comments on commit 21272e1

Please sign in to comment.