mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-16 18:22:35 +03:00
Quit sticker picker on m.sticker
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
64974eb3ee
commit
6f464feded
1 changed files with 1 additions and 0 deletions
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue