diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js index 9f4a017689..b17694011c 100644 --- a/src/components/views/rooms/MessageComposer.js +++ b/src/components/views/rooms/MessageComposer.js @@ -23,7 +23,7 @@ import sdk from '../../../index'; import dis from '../../../dispatcher'; import Autocomplete from './Autocomplete'; import SettingsStore, {SettingLevel} from "../../../settings/SettingsStore"; -import Popover from 'react-simple-popover'; +import Popover, {ArrowContainer} from 'react-tiny-popover'; import Widgets from '../../../utils/widgets'; import AppTile from '../elements/AppTile'; @@ -266,7 +266,13 @@ export default class MessageComposer extends React.Component { alt={e2eTitle} title={e2eTitle} />, ); - let callButton, videoCallButton, hangupButton, showStickersButton, hideStickersButton; + + let callButton; + let videoCallButton; + let hangupButton; + let stickersButton; + + // Call buttons if (this.props.callState && this.props.callState !== 'ended') { hangupButton =
Click here to add your first sitckerpack
; - if (stickerpackWidget && stickerpackWidget.content && stickerpackWidget.content.url) { - stickersContent =Click here to add your first sitckerpack
; + } - hideStickersButton = + + if (this.state.showStickers) { + // Show hide-stickers button + stickersButton =