mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Merge pull request #450 from TheTimeWalker/ios-sticker-sending
Fix iOS stickers by adding widgetData to callAction
This commit is contained in:
commit
08bd1319c5
@ -39,8 +39,7 @@ export class ScalarWidgetApi {
|
||||
}
|
||||
|
||||
public static sendSticker(sticker: FE_Sticker, pack: FE_StickerPack): void {
|
||||
ScalarWidgetApi.callAction("m.sticker", {
|
||||
data: {
|
||||
const payload = {
|
||||
description: sticker.description,
|
||||
content: {
|
||||
// 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