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 functional EventUtils (#8386)
* extract poll event test util Signed-off-by: Kerry Archibald <kerrya@element.io> * test isContentActionable Signed-off-by: Kerry Archibald <kerrya@element.io> * test canEditContent Signed-off-by: Kerry Archibald <kerrya@element.io> * test functional eventutils Signed-off-by: Kerry Archibald <kerrya@element.io> * copyrights Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
@ -82,7 +82,7 @@ export function canEditContent(mxEvent: MatrixEvent): boolean {
|
||||
M_POLL_START.matches(mxEvent.getType()) ||
|
||||
(
|
||||
(msgtype === MsgType.Text || msgtype === MsgType.Emote) &&
|
||||
body &&
|
||||
!!body &&
|
||||
typeof body === 'string'
|
||||
)
|
||||
);
|
||||
|
Reference in New Issue
Block a user