You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Test that pinned messages reflect edits correctly (#7960)
* Hide unpinnable pinned messages in more cases Signed-off-by: Robin Townsend <robin@robin.town> * Fix typo Signed-off-by: Robin Townsend <robin@robin.town> * Test that unpinnable pinned messages get hidden Signed-off-by: Robin Townsend <robin@robin.town> * Fix cli.relations error in test Signed-off-by: Robin Townsend <robin@robin.town> * Use event: true shortcut when calling mkEvent Signed-off-by: Robin Townsend <robin@robin.town> * Use mockResolvedValue instead of mockReturnValue for async mock Signed-off-by: Robin Townsend <robin@robin.town> * Actually mock redacted messages correctly Signed-off-by: Robin Townsend <robin@robin.town> * Ensure that panel is updated before assertions are made Signed-off-by: Robin Townsend <robin@robin.town> * Test that pinned messages reflect edits correctly Signed-off-by: Robin Townsend <robin@robin.town> * Fix warning about missing date Signed-off-by: Robin Townsend <robin@robin.town> * Move calls to update out of act They don't need to be there. Signed-off-by: Robin Townsend <robin@robin.town> * Move calls to update out of act They don't need to be there. Signed-off-by: Robin Townsend <robin@robin.town> * Fix lint Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
@ -171,7 +171,7 @@ export function mkEvent(opts: MakeEventProps): MatrixEvent {
|
||||
content: opts.content,
|
||||
prev_content: opts.prev_content,
|
||||
event_id: "$" + Math.random() + "-" + Math.random(),
|
||||
origin_server_ts: opts.ts,
|
||||
origin_server_ts: opts.ts ?? 0,
|
||||
unsigned: opts.unsigned,
|
||||
};
|
||||
if (opts.skey) {
|
||||
|
Reference in New Issue
Block a user