Page MenuHomePhorge

Enable upload file for reply
ClosedPublic

Authored by nannanko on Jul 20 2024, 6:29 PM.
Tags
None
Referenced Files
F105745: D143.1730724183.diff
Sun, Nov 3, 4:43 AM
F105214: D143.1730705520.diff
Sun, Nov 3, 12:32 AM
F104912: D143.1730697847.diff
Sat, Nov 2, 10:24 PM
F104518: D143.1730676393.diff
Sat, Nov 2, 4:26 PM
F104517: D143.1730676388.diff
Sat, Nov 2, 4:26 PM
F104409: D143.1730665335.diff
Sat, Nov 2, 1:22 PM
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
Branch
nannanko/stacked
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 241
Build 470: GitLab CI for kazv
Build 469: 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?

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
310–311
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.