mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-09-14 21:12:00 +00:00
Fix iOS stickers by adding widgetData to callAction
This commit is contained in:
parent
2fb719f7fd
commit
835c95e6e2
@ -39,8 +39,7 @@ export class ScalarWidgetApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static sendSticker(sticker: FE_Sticker, pack: FE_StickerPack): void {
|
public static sendSticker(sticker: FE_Sticker, pack: FE_StickerPack): void {
|
||||||
ScalarWidgetApi.callAction("m.sticker", {
|
const payload = {
|
||||||
data: {
|
|
||||||
description: sticker.description,
|
description: sticker.description,
|
||||||
content: {
|
content: {
|
||||||
// Element Android requires content.body to contain the sticker description, otherwise
|
// Element Android requires content.body to contain the sticker description, otherwise
|
||||||
@ -65,7 +64,11 @@ export class ScalarWidgetApi {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
};
|
||||||
|
ScalarWidgetApi.callAction("m.sticker", {
|
||||||
|
data: payload,
|
||||||
|
// This is needed for Element iOS to work as it uses widgetData
|
||||||
|
widgetData: payload,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user