Skip to content
This repository has been archived by the owner on Jul 9, 2022. It is now read-only.

Implementing addReaction function #427

Merged
merged 25 commits into from
Mar 30, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c6957bf
Implementing addReaction function
gamelaster Mar 26, 2017
a34c12b
Patching tipos
gamelaster Mar 26, 2017
325f16f
Adding static doc_id
gamelaster Mar 26, 2017
6161ed8
Merge remote-tracking branch 'upstream/master' into feature-reactions
gamelaster Mar 27, 2017
99655f7
Renaming addReaction to setMessageReaction
gamelaster Mar 29, 2017
23c26e6
Adding reactions variable into message template
gamelaster Mar 29, 2017
1ec7ad1
Relative incrementing client_mutation_id
gamelaster Mar 29, 2017
915993f
Adding REMOVE_REACTION support
gamelaster Mar 29, 2017
4a8842a
Parsing reactions via Client Payload
gamelaster Mar 29, 2017
2211491
Only supported reaction emojis and conversion from text
gamelaster Mar 29, 2017
bdb9284
Adding threadId into message reaction template
gamelaster Mar 29, 2017
9c313ab
Removing unused argument on setMessageReaction
gamelaster Mar 29, 2017
8d459e5
Adding documentation for setMessageReaction
gamelaster Mar 29, 2017
7dd583d
Adding setMessageReaction on README.MD
gamelaster Mar 29, 2017
d476290
Removing old addReaction file and move clientMutationId to ctx
gamelaster Mar 29, 2017
6248686
Merge branch 'feature-reactions' of https://github.com/GAMELASTER/fac…
gamelaster Mar 29, 2017
b74b5e3
Adding reactions into delta and into documentation
gamelaster Mar 29, 2017
7f458e1
Reverting reaction implement into delta messages
gamelaster Mar 29, 2017
d8365fc
Adding forgotten break
gamelaster Mar 30, 2017
158e2ed
New reaction object + threadId fix
gamelaster Mar 30, 2017
a2b54ee
Fixed description of messageId
gamelaster Mar 30, 2017
c933951
Adding other forgotten breaks
gamelaster Mar 30, 2017
c55efec
Adding back compatilibity for threadKey.threadFbId
gamelaster Mar 30, 2017
4b2dc82
Adding Facebook emoji shortcuts
gamelaster Mar 30, 2017
a2eb5a5
Removing :angery: shortcut
gamelaster Mar 30, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -949,13 +949,13 @@ __Arguments__

__Supported Emojis__

* 😍 - Unicode: `\uD83D\uDE0D`, Shortcut: `:heart_eyes:`
* 😆 - Unicode: `\uD83D\uDE06`, Shortcut: `:laughing:`
* 😮 - Unicode: `\uD83D\uDE2E`, Shortcut: `:open_mouth:`
* 😢 - Unicode: `\uD83D\uDE22`, Shortcut: `:cry:`
* 😠 - Unicode: `\uD83D\uDE20`, Shortcut: `:angry:`
* 👍 - Unicode: `\uD83D\uDC4D`, Shortcut: `:thumbsup:`
* 👎 - Unicode: `\uD83D\uDC4E`, Shortcut: `:thumbsdown:`
* 😍 - Unicode: `\uD83D\uDE0D`, Shortcut: `:heart_eyes:` or `:love:`
* 😆 - Unicode: `\uD83D\uDE06`, Shortcut: `:laughing:` or `:haha:`
* 😮 - Unicode: `\uD83D\uDE2E`, Shortcut: `:open_mouth:` or `:wow:`
* 😢 - Unicode: `\uD83D\uDE22`, Shortcut: `:cry:` or `:sad:`
* 😠 - Unicode: `\uD83D\uDE20`, Shortcut: `:angry:` or `:angery:`
* 👍 - Unicode: `\uD83D\uDC4D`, Shortcut: `:thumbsup:` or `:like:`
* 👎 - Unicode: `\uD83D\uDC4E`, Shortcut: `:thumbsdown:` or `:dislike:`


---------------------------------------
Expand Down
7 changes: 7 additions & 0 deletions src/setMessageReaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,31 @@ module.exports = function(defaultFuncs, api, ctx) {
//valid
break;
case ":heart_eyes:":
case ":love:":
reaction = "\uD83D\uDE0D";
break;
case ":laughing:":
case ":haha:":
reaction = "\uD83D\uDE06";
break;
case ":open_mouth:":
case ":wow:":
reaction = "\uD83D\uDE2E";
break;
case ":cry:":
case ":sad:":
reaction = "\uD83D\uDE22";
break;
case ":angry:":
case ":angery:":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was probably typo in suggestion... :/ on facebook it is still angry

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added it from list which provided me @ivkos, but as I remember, it is angery, but not sure!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but he must have made mistake :(
zrzut ekranu z 2017-03-30 20 46 32

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, you are right, it's angry (checked myself too)! Fixed

reaction = "\uD83D\uDE20";
break;
case ":thumbsup:":
case ":like:":
reaction = "\uD83D\uDC4D";
break;
case ":thumbsdown:":
case ":dislike:":
reaction = "\uD83D\uDC4E";
break;
default:
Expand Down