Remove reaction send flag
This commit is contained in:
parent
01d4aa0772
commit
539c02cb92
|
@ -965,10 +965,6 @@
|
|||
* target message
|
||||
*/
|
||||
async sendReactionMessage(reaction, target) {
|
||||
if (!window.ENABLE_REACTION_SEND) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const timestamp = Date.now();
|
||||
const outgoingReaction = { ...reaction, ...target };
|
||||
const reactionModel = Whisper.Reactions.add({
|
||||
|
|
|
@ -16,7 +16,6 @@ window.isFocused = () => browserWindow.isFocused();
|
|||
|
||||
// Waiting for clients to implement changes on receive side
|
||||
window.ENABLE_STICKER_SEND = true;
|
||||
window.ENABLE_REACTION_SEND = false;
|
||||
window.TIMESTAMP_VALIDATION = false;
|
||||
window.PAD_ALL_ATTACHMENTS = false;
|
||||
window.SEND_RECIPIENT_UPDATES = false;
|
||||
|
|
|
@ -1089,9 +1089,6 @@ export class Message extends React.PureComponent<Props, State> {
|
|||
</Reference>
|
||||
);
|
||||
|
||||
// @ts-ignore
|
||||
const ENABLE_REACTION_SEND: boolean = window.ENABLE_REACTION_SEND;
|
||||
|
||||
return (
|
||||
<Manager>
|
||||
<div
|
||||
|
@ -1100,7 +1097,7 @@ export class Message extends React.PureComponent<Props, State> {
|
|||
`module-message__buttons--${direction}`
|
||||
)}
|
||||
>
|
||||
{ENABLE_REACTION_SEND ? reactButton : null}
|
||||
{reactButton}
|
||||
{downloadButton}
|
||||
{replyButton}
|
||||
{menuButton}
|
||||
|
@ -1149,9 +1146,6 @@ export class Message extends React.PureComponent<Props, State> {
|
|||
const showRetry = status === 'error' && direction === 'outgoing';
|
||||
const multipleAttachments = attachments && attachments.length > 1;
|
||||
|
||||
// @ts-ignore
|
||||
const ENABLE_REACTION_SEND: boolean = window.ENABLE_REACTION_SEND;
|
||||
|
||||
const menu = (
|
||||
<ContextMenu id={triggerId}>
|
||||
{!isSticker &&
|
||||
|
@ -1168,21 +1162,19 @@ export class Message extends React.PureComponent<Props, State> {
|
|||
{i18n('downloadAttachment')}
|
||||
</MenuItem>
|
||||
) : null}
|
||||
{ENABLE_REACTION_SEND ? (
|
||||
<MenuItem
|
||||
attributes={{
|
||||
className: 'module-message__context__react',
|
||||
}}
|
||||
onClick={(event: React.MouseEvent) => {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
<MenuItem
|
||||
attributes={{
|
||||
className: 'module-message__context__react',
|
||||
}}
|
||||
onClick={(event: React.MouseEvent) => {
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
||||
this.toggleReactionPicker();
|
||||
}}
|
||||
>
|
||||
{i18n('reactToMessage')}
|
||||
</MenuItem>
|
||||
) : null}
|
||||
this.toggleReactionPicker();
|
||||
}}
|
||||
>
|
||||
{i18n('reactToMessage')}
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
attributes={{
|
||||
className: 'module-message__context__reply',
|
||||
|
|
Loading…
Reference in New Issue