Page MenuHomePhorge

Enable upload file for reply
ClosedPublic

Authored by nannanko on Jul 20 2024, 6:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 5, 1:39 PM
Unknown Object (File)
Tue, Sep 3, 12:03 AM
Unknown Object (File)
Mon, Sep 2, 1:01 AM
Unknown Object (File)
Sun, Sep 1, 9:06 PM
Unknown Object (File)
Sun, Sep 1, 5:26 PM
Unknown Object (File)
Sat, Aug 31, 9:03 AM
Unknown Object (File)
Fri, Aug 30, 10:47 PM
Unknown Object (File)
Fri, Aug 30, 11:44 AM
Subscribers

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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?

357–361
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
354–361

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
63

Use a safe url here

256–266

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
82

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
322–323
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.Sun, Aug 11, 6:50 PM
This revision was landed with ongoing or failed builds.Tue, Aug 13, 5:14 PM
This revision was automatically updated to reflect the committed changes.