Skip to content

Commit

Permalink
Merge pull request trazyn#182 from kotojo/patch-1
Browse files Browse the repository at this point in the history
Fixed some grammar issues.
  • Loading branch information
trazyn authored Sep 25, 2018
2 parents d9b43f6 + 8ddb508 commit fcafa32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/components/MessageInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class MessageInput extends Component {
&& user.length === 1
&& user.slice(-1).pop().UserName === this.props.me.UserName
) {
this.props.showMessage('Can\'t send message to yourself.');
this.props.showMessage('Can\'t send messages to yourself.');
return false;
}

Expand Down Expand Up @@ -62,7 +62,7 @@ export default class MessageInput extends Component {
);

if (!res) {
await this.props.showMessage(batch ? `Send message to ${e.NickName} is failed!` : 'Failed to send message.');
await this.props.showMessage(batch ? `Sending message to ${e.NickName} has failed!` : 'Failed to send message.');
}

return true;
Expand Down Expand Up @@ -101,7 +101,7 @@ export default class MessageInput extends Component {
for (let user of receiver) {
if (message) {
await this.props.sendMessage(user, message, true)
.catch(ex => showMessage(`Send message to ${user.NickName} is failed!`));
.catch(ex => showMessage(`Sending message to ${user.NickName} has failed!`));
continue;
}

Expand Down Expand Up @@ -173,7 +173,7 @@ export default class MessageInput extends Component {
<div
className={classes.tips}
>
You should choice a contact at first.
You should choose a contact first.
</div>

<input
Expand Down

0 comments on commit fcafa32

Please sign in to comment.