You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
Add default IContent value in makeContentExtensible (#2126)
This commit is contained in:
@@ -3948,7 +3948,7 @@ export class MatrixClient extends EventEmitter {
|
||||
// reasonably large pool of messages to parse.
|
||||
let eventType: string = EventType.RoomMessage;
|
||||
let sendContent: IContent = content as IContent;
|
||||
const makeContentExtensible = (content: IContent, recurse = true): IPartialEvent<object> => {
|
||||
const makeContentExtensible = (content: IContent = {}, recurse = true): IPartialEvent<object> => {
|
||||
let newEvent: IPartialEvent<object> = null;
|
||||
|
||||
if (content['msgtype'] === MsgType.Text) {
|
||||
|
||||
Reference in New Issue
Block a user