From 4b01df50a6e7693483d050bf264c15d61fb94bb7 Mon Sep 17 00:00:00 2001 From: nmywn Date: Tue, 3 Jan 2017 21:34:07 +0100 Subject: [PATCH 1/2] Update Chat.jsx Im not sure if this code will work now, but what I'm trying to do is broadcast information about the tip being made. For now it is broadcasted locally and I think its wrong. Shouldn't be like that. Tips can be used to tip people that are helpful or funny, but it makes more sense when info about that event is broadcasted to all, otherwise it feels creepy. I think automatic memo is also better aproach, less effort for sender, but he can change if he wish. This scheme could go further with for example Options: defaultTip = 100, defaultToken = BTS . That way user effort is limited to simple /tip user even is he wish use nonstandard values. Those parameters can be also overwrited as user is typing: /tip user notDefaultValue /tip user notDefaultValue notDefaultValue and so on... --- web/app/components/Chat/Chat.jsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/web/app/components/Chat/Chat.jsx b/web/app/components/Chat/Chat.jsx index 578889aaa..281be01bf 100644 --- a/web/app/components/Chat/Chat.jsx +++ b/web/app/components/Chat/Chat.jsx @@ -37,7 +37,7 @@ class Comment extends React.Component { render() { let {comment, user, color} = this.props; - let systemUsers = [counterpart.translate("chat.welcome_user"), "SYSTEM"]; + let systemUsers = [counterpart.translate("chat.welcome_user"), "SYSTEM", "TROLLBOT"]; return (
4) { memo = ""; for (let i = 4; i < parsed.length; i++) { From 82e24ca11882252dd15a2ef28fe6bec9a680ab34 Mon Sep 17 00:00:00 2001 From: nmywn Date: Wed, 4 Jan 2017 23:03:27 +0100 Subject: [PATCH 2/2] Update Chat.jsx Would you agree for automemo? --- web/app/components/Chat/Chat.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/components/Chat/Chat.jsx b/web/app/components/Chat/Chat.jsx index 281be01bf..e51981c17 100644 --- a/web/app/components/Chat/Chat.jsx +++ b/web/app/components/Chat/Chat.jsx @@ -37,7 +37,7 @@ class Comment extends React.Component { render() { let {comment, user, color} = this.props; - let systemUsers = [counterpart.translate("chat.welcome_user"), "SYSTEM", "TROLLBOT"]; + let systemUsers = [counterpart.translate("chat.welcome_user"), "SYSTEM"]; return (