Conversation
dc37a9a to
4af0d13
Compare
|
Can we add a test? |
|
/backport to stable33 |
| * createdAt: int, | ||
| * sendAt: int, | ||
| * silent: bool, | ||
| * originalSendAt?: int, |
There was a problem hiding this comment.
Should add inline docs when this is the case and on sendAt document when it could be 0
There was a problem hiding this comment.
Should add inline docs when this is the case and on sendAt document when it could be 0
What does that look like? Add it on the toArray() Method?
There was a problem hiding this comment.
spreed/lib/ResponseDefinitions.php
Line 265 in 27e1e62
There was a problem hiding this comment.
spreed/lib/ResponseDefinitions.php
Line 265 in 27e1e62
Neat, thanks, I wasn't sure what was meant with "Inline docs" π
I added the data to the current test setup, it will run any time sendAt is 0 |
There was no integration test failing before. IIRC potential test would be:
|
Literally |
|
Right, then we can add That basically would test your PR |
Why, it's already being added in the FeatureContext: if ($row['sendAt'] !== '0') {
$row['sendAt'] = self::$messageIdToTimestamp[$row['id']];
} else {
$row['originalSendAt'] = self::$messageIdToTimestamp[$row['id']];
} |
|
Ah, now I see it. |
|
I added a small commit to make the test more clear, let me know what you think |
Looks good, thanks for that! Shall I squash and rebase? |
|
After you added the docs you can do that yeah |
0120384 to
07f50ba
Compare
[skip-ci] Signed-off-by: Anna Larch <anna@nextcloud.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
cb0f258 to
06a9cb7
Compare

βοΈ Resolves
Fixes #16777
π οΈ API Checklist
π§ Tasks
π Checklist
docs/has been updated or is not required