1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Quit sticker picker on m.sticker

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner
2021-02-23 18:12:46 +01:00
parent 64974eb3ee
commit 6f464feded

View File

@@ -226,6 +226,7 @@ export default class AppTile extends React.Component {
case 'm.sticker':
if (this._sgWidget.widgetApi.hasCapability(MatrixCapabilities.StickerSending)) {
dis.dispatch({action: 'post_sticker_message', data: payload.data});
dis.dispatch({action: 'stickerpicker_close'});
} else {
console.warn('Ignoring sticker message. Invalid capability');
}