Page MenuHomePhorge

Enable upload file for reply
ClosedPublic

Authored by nannanko on Jul 20 2024, 6:29 PM.

Details

Summary

kazv can't upload file for reply, this enable it.

Type: add

Test Plan

Click reply, and upload file, verify that a reply event was sent

Diff Detail

Repository
rK kazv
Branch
upload-file-reply
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 221
Build 431: GitLab CI for kazv
Build 430: arc lint + arc unit

Event Timeline

Please add a changelog type to the summary, using the following format:

Type: (add|remove|skip|security|fix)

nannanko removed a reviewer: servant.
src/contents/ui/SendMessageBox.qml
69–218

why are you removing the newlines?

355–359
src/contents/ui/SendMessageBox.qml
69–218

why are you removing the newlines?

It seems that my editor automatically removed the spaces from these lines, do I need to change it to the original?

  • Fix a error arguments format
src/contents/ui/SendMessageBox.qml
69–218

ok i saw that it's not a removed newline but a removed whitespace-only line. i'll add a lint rule to disallow whitespace-only lines. https://iron.lily-is.land/D146

src/contents/ui/SendMessageBox.qml
352–357

add a test to verify it does call startNewUploadJob with the intended parameters

tusooa requested changes to this revision.Jul 26 2024, 5:50 PM
This revision now requires changes to proceed.Jul 26 2024, 5:50 PM
tusooa requested changes to this revision.Jul 28 2024, 5:21 PM
tusooa added inline comments.
src/tests/quick-tests/test-helpers/KazvIOManagerMock.qml
11–22 ↗(On Diff #390)

Use mockHelper properly

src/tests/quick-tests/tst_SendMessageBox.qml
64 ↗(On Diff #390)

Use a safe url here

245–255 ↗(On Diff #390)

Take a look at CreateRoomTest to use a transformation (in MockHelper.qml), and deepEqual() in test-helpers.js to ease your comparison

This revision now requires changes to proceed.Jul 28 2024, 5:21 PM
  • Use MockHelper and deepEqual for test

otherwise looks good

src/matrix-room.hpp
74–75

unrelated changes

tusooa requested changes to this revision.Aug 3 2024, 6:46 PM
tusooa added inline comments.
src/tests/quick-tests/test-helpers/KazvIOManagerMock.qml
11 ↗(On Diff #395)

unrelated changes

This revision now requires changes to proceed.Aug 3 2024, 6:46 PM
In D143#2771, @tusooa wrote:

otherwise looks good

Because I rebased it onto D125.

Maybe it's a bad habit.

  • Delete trailing newline
src/matrix-room.cpp
298–299
tusooa requested changes to this revision.Aug 7 2024, 6:51 PM
This revision now requires changes to proceed.Aug 7 2024, 6:51 PM
tusooa added a subscriber: apr3vau.

The unit test failure seems to be related to @apr3vau 's changes, not yours. Land this.

This revision is now accepted and ready to land.Aug 11 2024, 6:50 PM
This revision was landed with ongoing or failed builds.Aug 13 2024, 5:14 PM
This revision was automatically updated to reflect the committed changes.