Skip to content

Commit a9949d2

Browse files
committed
Fixed linting warnings and removed not needed variable
1 parent f0f0bbd commit a9949d2

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

src/app/components/Chat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ const Chat = (props) => {
294294
const handleMessage = (content, type) => {
295295
if (editMessage) {
296296
if (editMessage.content !== content) {
297-
let message = props.account.sendMessage(selectedUri, content, editMessage.contentType, { timestamp: editMessage.timestamp }, () => {
297+
props.account.sendMessage(selectedUri, content, editMessage.contentType, { timestamp: editMessage.timestamp }, () => {
298298
props.removeMessage(editMessage);
299299
});
300300
}

src/app/components/Chat/Message.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ const Message = ({
265265
}
266266

267267
const _editMessage = () => {
268-
if (typeof removeMessage === 'function') {
268+
if (typeof editMessage === 'function') {
269269
editMessage();
270270
}
271271
}
@@ -374,7 +374,9 @@ Message.propTypes = {
374374
focus: PropTypes.bool,
375375
contactCache: PropTypes.object,
376376
imdnStates: PropTypes.bool,
377-
enableMenu: PropTypes.bool
377+
enableMenu: PropTypes.bool,
378+
editMessage: PropTypes.func,
379+
fromSelf: PropTypes.bool
378380
};
379381

380382

src/app/components/Chat/MessageList.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ const MessageList = ({
270270
:
271271
<DragAndDrop title="Drop files to share them" handleDrop={uploadFiles} marginTop={'100px'}>
272272
<TransitionGroup
273-
exit={false}>
273+
exit={false}
274+
>
274275
{entries}
275276
</TransitionGroup>
276277
</DragAndDrop>
@@ -293,7 +294,8 @@ MessageList.propTypes = {
293294
uploadFiles: PropTypes.func,
294295
downloadFiles: PropTypes.func.isRequired,
295296
embed: PropTypes.bool,
296-
storageLoadEmpty: PropTypes.bool
297+
storageLoadEmpty: PropTypes.bool,
298+
editMessage: PropTypes.func
297299
};
298300

299301

src/app/components/Chat/OldMessage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const linkifyUrls = require('linkify-urls');
1111
const { Chip } = require('@material-ui/core');
1212
const { makeStyles } = require('@material-ui/core/styles');
1313
const {
14-
Lock: LockIcon,
14+
Lock: LockIcon
1515
} = require('@material-ui/icons');
1616

1717

src/app/components/IncomingCallWindow.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ class IncomingCallWindow extends React.Component {
5757
.then(() => {
5858
this.browserWindowObject.webContents.send('updateContent', this.el.innerHTML);
5959
this.copyStyles(document);
60-
})
61-
.catch(error => console.warn(error))
60+
});
6261
});
6362

6463
this.ipcRenderer = window.require('electron').ipcRenderer;

0 commit comments

Comments
 (0)