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
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

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