Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emoji Reacts #2320

Merged
merged 306 commits into from
Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
306 commits
Select commit Hold shift + click to select a range
0f196e6
assert what's sent from renderer for db has only expected keys
Bilb May 3, 2022
84eb5a1
WIP
Bilb May 10, 2022
308ec9e
fix: remove name and profileName so we only rely on nickname and disp…
Bilb May 12, 2022
2706965
fix: add a text explaining db is being optimized initial start with pw
Bilb May 12, 2022
969621b
Merge remote-tracking branch 'upstream/clearnet' into move-app-db-to-…
Bilb May 13, 2022
5feeedd
fix: remove getAllGroupsInvolvingId sql
Bilb May 17, 2022
c545645
Merge remote-tracking branch 'upstream/clearnet' into move-app-db-to-…
Bilb May 18, 2022
1cd0cde
fix: store one log file extra than the current one
Bilb May 18, 2022
bcf634f
fix: fix integration tests failing when to save 'name' to db
Bilb May 18, 2022
77dda8d
Merge remote-tracking branch 'upstream/clearnet' into move-app-db-to-…
Bilb May 18, 2022
264334d
fix: update packages to fix yarn audit issues
Bilb May 23, 2022
5dc8cf9
Merge remote-tracking branch 'upstream/clearnet' into move-app-db-to-…
Bilb May 23, 2022
ff58a97
fix: typo in package.json
Bilb May 23, 2022
3d4f290
fix: allow 1 retry for each integration test
Bilb May 23, 2022
629a9c7
fix: optimize updateLastMessage knowing we store only 60 chars
Bilb May 23, 2022
53853ad
fix: use oxen-io session-better-sqlite3 instead of signal one
Bilb May 24, 2022
0d0b5d9
Merge remote-tracking branch 'upstream/clearnet' into move-app-db-to-…
Bilb May 24, 2022
c95af3f
fix: restore draft text when moving back to convo from settings
Bilb May 24, 2022
540ea3d
fix: typo shoudCommit -> shouldCommit
Bilb May 24, 2022
3aacf9f
fix: build of sass with fails with ---force
Bilb May 24, 2022
9a1bd33
Merge remote-tracking branch 'w/id-blinding' into id-blinding
Bilb May 25, 2022
3e2cb11
clean: add some comments and updated test title to match expected result
Bilb May 25, 2022
8e0198e
Merge remote-tracking branch 'will/message_text_wrapping' into move-a…
Bilb May 25, 2022
a033645
comment: add details of what is the lastMessage stored in db
Bilb May 25, 2022
e57f0d1
Merge branch 'move-app-db-to-columns' into id-blinding
Bilb May 25, 2022
7bfeef6
fix: v4 onion requests but not used everywhere yet
Bilb Jun 2, 2022
72b6def
fix: compact fetch for pysogs
Bilb Jun 7, 2022
22377d6
fix: moved around sogsv3 wip to separate folder
Bilb Jun 8, 2022
d7c7ddc
feat: add saving of pollinfo from compact fetch pysogs
Bilb Jun 15, 2022
984934d
feat: add sending messages onionv4 not blinded
Bilb Jun 15, 2022
1203ce3
fix: removed auth token logic as its support is dropped
Bilb Jun 15, 2022
d406cbf
feat: fetch caps when getting infos of opengroup room
Bilb Jun 15, 2022
9c996a8
fix: remove member count fetching as it is now in batchPoll
Bilb Jun 15, 2022
fb4e855
fix: call for default official rooms in UI
Bilb Jun 15, 2022
362898d
fix: make the handleCaps function type correct
Bilb Jun 15, 2022
af4588d
feat: make caps request always use blinding
Bilb Jun 16, 2022
ded838b
feat: make sogsRoomDetails cached and avoid write on no change
Bilb Jun 16, 2022
612d7a0
fix: polling using since seqno for messages
Bilb Jun 16, 2022
61aa182
fix: cached rooms have to be saved to cache on changes!
Bilb Jun 16, 2022
b2305e5
fix: caching sogs rooms and changing them outside does not work
Bilb Jun 16, 2022
afee347
fix: sogs signature embedded inside message with blinding
Bilb Jun 20, 2022
9597369
fix: add dependency and build of our own curve25519 library
Bilb Jun 21, 2022
3ac8684
fix: add blindedKey real sender found in memory cache for now
Bilb Jun 21, 2022
1330ba8
fix: remove stored blindedPubkey in conversation for now
Bilb Jun 21, 2022
dfb9775
fix: write found blindedKeys to db as an item for now
Bilb Jun 21, 2022
08d025e
fix: deduplicate messages by known blinded id too
Bilb Jun 21, 2022
6c463dc
fix: allow avatar click on blinded ids and blinded-but-unblinded ids
Bilb Jun 22, 2022
81ef95d
fix: use redux store to count incoming messages
Bilb Jun 22, 2022
439d63e
feat: add decrypt of blinded inbox message and sending
Bilb Jun 23, 2022
c48ab3c
feat: merge multiple blindedIds into one on pubkey got
Bilb Jun 28, 2022
ccc5c67
feat: store our blindedID when sending a message
Bilb Jun 29, 2022
56bcc05
feat: handle outbox messages with blinding logic
Bilb Jun 30, 2022
1350ec7
feat: make outbox message sync accross linked devices
Bilb Jun 30, 2022
4c35573
feat: show toast on blindedMessageRequest with unknown sogs
Bilb Jul 1, 2022
27eff69
fix: delete_messages now uses batch_send and onion v4
Bilb Jul 4, 2022
4201cce
fix: make add/remove mods use batch send+onion v4
Bilb Jul 4, 2022
8ccf693
fix: update ban, ban_delete_all and unban to new sogs endpoint
Bilb Jul 4, 2022
d171798
fix: handling errors for sogs blinded message request
Bilb Jul 4, 2022
2ac22c4
feat: update fetch all rooms infos to new endpoint and v4
Bilb Jul 5, 2022
f2b984d
fix: update getRoomInfo to not use legacy endpoint
Bilb Jul 5, 2022
65d9136
fix: preview on allRooms call (left pane) download with onion v4
Bilb Jul 5, 2022
f83a890
fix: make downloading file from sogs using v4
Bilb Jul 5, 2022
7ec9b1e
fix: upload sogs v3 with onion v4
Bilb Jul 6, 2022
cff158b
fix: make roomImage upload/download work with new endpoints
Bilb Jul 6, 2022
ab202eb
fix: disable caption editor when sending attachment
Bilb Jul 8, 2022
aa8f2b1
feat: add support for onionv4 to fileserver+pn server
Bilb Jul 8, 2022
b27af35
fix: cleaned up types of sendOnionRequests with the 2 potential types
Bilb Jul 11, 2022
cad2f2e
fix: make sure download fsv2 file gets the id with old and new endpoint
Bilb Jul 12, 2022
495ce2a
fix: force server timestamp to be ms for new incoming sogs messages
Bilb Jul 12, 2022
b19e87b
fix: handle blinded admins and check if we are part of them
Bilb Jul 13, 2022
c7ffc35
fix: message details minor tweaks
Bilb Jul 13, 2022
4f2c2f4
fix: make sure You works even with blinded sogs
Bilb Jul 13, 2022
bbff7d8
feat: added message react bar to context menu
yougotwill Jul 14, 2022
c632e51
feat: added hover effect to react bar buttons
yougotwill Jul 14, 2022
a0d7968
feat: moved SessionEmojiPanel sass into the component itself
yougotwill Jul 14, 2022
70dffb9
feat: MessageReactBar action opens the emoji panel
yougotwill Jul 14, 2022
7193729
feat: smartly position emoji panel
yougotwill Jul 14, 2022
1b30fe1
feat: highlight menu that has been right clicked
yougotwill Jul 14, 2022
7281a4b
fix: message line highlight is now full width
yougotwill Jul 14, 2022
c9cefac
feat: started message reactions ui
yougotwill Jul 14, 2022
d967d64
feat: added reaction message to datamessage in protobuf
yougotwill Jul 14, 2022
ec37488
fix: updated React id comment in protobuf
yougotwill Jul 14, 2022
7744bb2
feat: started working on sending reactions
yougotwill Jul 14, 2022
ef07b05
fix: added reaction code to protobuf
yougotwill Jul 14, 2022
4280a8c
fix: send timestamp of original message when reacting
yougotwill Jul 14, 2022
cf45f0f
feat: added reaction support to messages
yougotwill Jul 14, 2022
6d6888a
feat: handle reactions when messages are sent
yougotwill Jul 14, 2022
dc86ecf
fix: reacts prop was not included in message model
yougotwill Jul 14, 2022
b13d9af
fix: resolved all lint errors from yarn ready
yougotwill Jul 14, 2022
aae193c
fix: svg file name
yougotwill Jul 14, 2022
f71366f
fix: reaction datamessage must have an empty body
yougotwill Jul 14, 2022
76a7ea9
feat: a receiver can react to sent messages
yougotwill Jul 14, 2022
9afebb6
fix: reactions now work properlly for 1-1 convos
yougotwill Jul 14, 2022
e9474d3
fix: reverted ReactionList type structure
yougotwill Jul 14, 2022
624ec31
fix: cleanup thanks to yarn ready
yougotwill Jul 14, 2022
3b2de7a
fix: moved handleMessageRaction to messageInteractions
yougotwill Jul 14, 2022
1573593
fix: whitespace in SignalService protobuf
yougotwill Jul 14, 2022
454f549
feat: message reactions are now synced across devices
yougotwill Jul 14, 2022
581221a
feat: you can now remove reactions
yougotwill Jul 14, 2022
ac7deed
fix: no dynamic deletion of object properties
yougotwill Jul 14, 2022
de0e12c
fix: includes me reaction logic
yougotwill Jul 14, 2022
d8ee540
fix: improved deletion logic
yougotwill Jul 14, 2022
2b4c83b
feat: added recent reactions type
yougotwill Jul 14, 2022
ae1eeef
feat: reactbar now shows 6 most recently used reactions
yougotwill Jul 14, 2022
9734dfa
fix: removed duplicate recent reaction update
yougotwill Jul 14, 2022
6ad6cb4
feat: closed group support
yougotwill Jul 14, 2022
c8f8c15
fix: no async without await...
yougotwill Jul 14, 2022
e187c2c
feat: added open group support
yougotwill Jul 14, 2022
505e899
fix: hide popup corner on emoji panel when it appears as a modal
yougotwill Jul 14, 2022
ead6533
feat: added basic reaction tooltip
yougotwill Jul 14, 2022
1e95bda
feat: reaction tooltips now handle x overflow
yougotwill Jul 14, 2022
b8dc02d
feat: hide tooltip once your mouse leaves the message space
yougotwill Jul 14, 2022
0e9307b
feat: added a human readable list utility for the reactions tooltip
yougotwill Jul 14, 2022
e40e8e8
feat: convert pub keys to name and show them as human readable
yougotwill Jul 14, 2022
193b10e
fix: minor changes to pass yarn ready
yougotwill Jul 14, 2022
2a55620
fix: make popupReactions optional
yougotwill Jul 14, 2022
aeb190e
feat: cleaned up styled components, use generic click methods
yougotwill Jul 14, 2022
721315d
feat: added reactions modal
yougotwill Jul 14, 2022
53bffd5
fix: pass yarn ready
yougotwill Jul 14, 2022
875ff99
feat: show user details on avatar click on react list modal
yougotwill Jul 14, 2022
067c9c0
feat: the first sender will always be you in the react list modal
yougotwill Jul 14, 2022
1a07973
fix: react removal removing unecessarily
yougotwill Jul 14, 2022
645d268
feat: users can now remove their own reaction from the react list modal
yougotwill Jul 14, 2022
58b84cd
load selected reaction when opening reaction list modal
yougotwill Jul 14, 2022
c4fdb7f
feat: only show count and tooltip in groups
yougotwill Jul 14, 2022
1782beb
feat: added clear all button in reaction modal for open groups
yougotwill Jul 14, 2022
27f27b1
feat: added reaction message id to reaction list items for batch dele…
yougotwill Jul 14, 2022
aee25ed
feat: reaction counts are now abbreviated
yougotwill Jul 14, 2022
82e4e47
fix: pass yarn ready
yougotwill Jul 14, 2022
97f8dc0
feat: added clear all modal
yougotwill Jul 14, 2022
29a32d7
fix: pass yarn ready
yougotwill Jul 14, 2022
3e64754
feat: only give clear all option to admins for ReactListModal
yougotwill Jul 14, 2022
da0bdeb
feat: 1-1 chats now show notifications for reactions
yougotwill Jul 14, 2022
4323893
fix: restructured the RecordList type to hold all the DataMessage ids…
yougotwill Jul 14, 2022
8f361fd
fix: pass yarn ready
yougotwill Jul 14, 2022
1e3a779
Merge branch 'emoji_mart_upgrade'
yougotwill Jul 14, 2022
4fb2959
fix: remove unecessary emoji dep files
yougotwill Jul 14, 2022
da2939c
fix: popup positioning on the far left
yougotwill Jul 14, 2022
f7eb2e4
fix: profile name in tooltip
yougotwill Jul 14, 2022
b2ec67d
fix: use correct author in reaction prop
yougotwill Jul 14, 2022
e90999b
fix: pass yarn ready
yougotwill Jul 14, 2022
25f81b0
feat: added rate limiting for reactions
yougotwill Jul 14, 2022
e3f30ec
feat: toggled on skin support for emoji panel
yougotwill Jul 14, 2022
c15f1cf
fix: confirm emoji panel closes when it should
yougotwill Jul 14, 2022
c9020ec
Emoji a11y (#1)
yougotwill Jul 14, 2022
752e858
fix: compressed reactions shouldnt overlay the composition box modals
yougotwill Jul 14, 2022
dd9653b
fix: pass yarn ready
yougotwill Jul 14, 2022
34df548
feat: added localisation to emoji-mart Picker component
yougotwill Jul 14, 2022
549fac1
refactor: cleanup
yougotwill Jul 14, 2022
b0a3de3
refactor: cleanup all reaction components
yougotwill Jul 14, 2022
37b3553
Merge branch 'reacts_unit_tests'
yougotwill Jul 14, 2022
9213252
test: pass yarn ready
yougotwill Jul 14, 2022
ecf77a8
fix: small fixes based on Github comments
yougotwill Jul 14, 2022
7ce5c1a
fix: updated integration test snapshot
yougotwill Jul 14, 2022
6eacf8b
refactor: remove uneeded catch statement
yougotwill Jul 14, 2022
003e8e9
fix: handle unsupported languages for emoji panel
yougotwill Jul 14, 2022
12dad12
fix: extracted emoji i18n loading to i18n file
yougotwill Jul 14, 2022
f97a128
fix: close emoji panel before sending a reaction for better seen per…
yougotwill Jul 14, 2022
8217e71
fix: cleaned up emojipanelref check and added type
yougotwill Jul 14, 2022
683885e
feat: replaced event listener with clickaway hook for hiding the emoj…
yougotwill Jul 14, 2022
61bb810
fix: revoved unecessary svg and used the sessionIcon component
yougotwill Jul 14, 2022
0c657c2
fix: improved typings for message reactions
yougotwill Jul 14, 2022
0edadfd
fix: move state variables above jsx returns
yougotwill Jul 14, 2022
aeac8ae
fix: use includes instead of indexof
yougotwill Jul 14, 2022
e87c40b
fix: moved generateContacts out of main component
yougotwill Jul 14, 2022
53999e4
fix: use enum state instead of ints for handling message reactions
yougotwill Jul 14, 2022
e0472d9
fix: hide remove all reaction option for now
yougotwill Jul 14, 2022
df836b4
fix: pass yarn ready test
yougotwill Jul 14, 2022
de15a46
fix: mentions for @You with blinded ids logic
Bilb Jul 14, 2022
1882ad4
fix: mentions, and mentions in quotes to match designs
Bilb Jul 14, 2022
93eb4ae
fix: cleanup CaptionEditor component & css
Bilb Jul 15, 2022
09aeb38
WIP
Bilb Jul 15, 2022
6575ed2
Merge branch 'emoji_rendering_fix'
yougotwill Jul 15, 2022
9ef59b6
fix: fixed misalignment of reactions in modal
yougotwill Jul 15, 2022
91d009a
fix: use oxen-io curve25519js fork instead of Bilb
Bilb Jul 18, 2022
b43199f
fix: patched emoji-mart picker to have an onKeyDown event
yougotwill Jul 18, 2022
56ba152
fix: id blinding tests
Bilb Jul 19, 2022
ff41006
Merge remote-tracking branch 'upstream/clearnet' into id-blinding
Bilb Jul 19, 2022
6f5a524
fix: drop messages empty from sogs
Bilb Jul 19, 2022
7988ba3
fix: update fixed min versions of dependencies for audit
Bilb Jul 19, 2022
c037613
test: add tests for getCapabilitiesFromBatch
Bilb Jul 19, 2022
3913125
fix: fixing windows build not liking cd -
Bilb Jul 20, 2022
ef6a499
feat: add html coverage generation to coverage/index.html
Bilb Jul 20, 2022
74572dd
test: add some tests for knownBlindedKeys.ts
Bilb Jul 20, 2022
0193cd2
test: make all data function hidden behind single Data. export
Bilb Jul 20, 2022
236317f
test: add last test for knownBlindedKeys.ts
Bilb Jul 20, 2022
08a623d
fix: retry onion v4 requests
Bilb Jul 21, 2022
88f229d
test: refactor opengroupdata functions into single exported variable
Bilb Jul 22, 2022
79ee32d
test: skip opengroups not currently active from config message
Bilb Jul 22, 2022
988f721
ci: disable yarn audit cmd on pull request
Bilb Jul 22, 2022
c3037f9
fix: do not show copy and user details when id blinded
Bilb Jul 26, 2022
db5212f
fix: shorten pubkeys with (4..4) instead of (...6)
Bilb Jul 27, 2022
e9c1798
fix: consider pn specific syntax for no retrying onion request
Bilb Jul 27, 2022
4be4288
fix: header title being squashed to make it centered
Bilb Jul 28, 2022
532419d
fix: hide scrollNow butto when sending message
Bilb Jul 28, 2022
19690b4
fix: notify mention_only still works with blindedUs
Bilb Jul 28, 2022
f2e3daf
fix: rely on redux store to detect messageRequest
Bilb Jul 28, 2022
bb383ee
fix: to not shrink buttons in convo header even if large name
Bilb Jul 28, 2022
d0aec06
fix: decrease quality drastically at last resize iteration
Bilb Jul 28, 2022
6c9fe9a
fix: fix default sogs room flex grow
Bilb Jul 28, 2022
44d83bb
fix: attachment download when no image set in sogs
Bilb Jul 29, 2022
1b0ec3c
fix: all pubkeys are now 66 chars with prefix
Bilb Jul 29, 2022
1722280
fix: expirationTimerUpdate consider the field and the flags
Bilb Jul 29, 2022
71bcc15
fix: adding naked pubkey to cache when getting it from /inbox
Bilb Jul 29, 2022
afe4df7
Merge remote-tracking branch 'bilb/id-blinding' into emoji_reacts
yougotwill Aug 2, 2022
628f231
Merge branch 'clearnet' into emoji_reacts
yougotwill Aug 8, 2022
b773485
feat: moved all reaction types into one type file
yougotwill Aug 8, 2022
c624357
feat: started work on sending reacts in open groups
yougotwill Aug 9, 2022
8b86886
fix: make sure request body is empty
yougotwill Aug 9, 2022
18c1876
fix: reaction id is the serverId for open groups
yougotwill Aug 9, 2022
7f351b7
fix: handled send reaction response in opengroups
yougotwill Aug 9, 2022
e1f7721
fix: updated OpenGroupMessageV4 type to support reaction updates
yougotwill Aug 10, 2022
9e42c9f
Merge branch 'clearnet' into emoji_reacts_blinded
yougotwill Aug 10, 2022
ccbea23
added count and senders to ReactionList type for opengroups support
yougotwill Aug 10, 2022
9ca9fca
feat: we can now receive and load reactions in opengroups via the new…
yougotwill Aug 10, 2022
63eb4eb
fix: sending and receiving reactions is now faster in opengroups
yougotwill Aug 11, 2022
45b2647
fix: handle empty reacts state
yougotwill Aug 11, 2022
835b062
fix: blinded id's now resolve to you in reaction components
yougotwill Aug 11, 2022
da32c54
Merge branch 'clearnet' into emoji_reacts_blinded
yougotwill Aug 12, 2022
075a795
fix: incoming sogs messages should be chronological
yougotwill Aug 15, 2022
355c8ea
fix: make sure the path in a request for reactions is decoded
yougotwill Aug 15, 2022
7a1ca6b
feat: use count prop from ReactionList in UI
yougotwill Aug 15, 2022
b591b4d
fix: sending reactions in open groups
yougotwill Aug 15, 2022
db01349
feat: added opengroup moderator batch deletion of reactions
yougotwill Aug 15, 2022
e3c5cf5
fix: pass yarn ready
yougotwill Aug 15, 2022
b7af47a
Merge branch 'clearnet' into emoji_reacts_blinded
yougotwill Aug 15, 2022
17d4b45
feat: updated default reacts
yougotwill Aug 17, 2022
294f738
feat: only show reaction ui when supported
yougotwill Aug 17, 2022
dc2ac9d
fix: make sure sogs reaction methods can't be called on a group that …
yougotwill Aug 17, 2022
7aee050
fix: process reaction updates correctly
yougotwill Aug 17, 2022
3547ec8
fix: include index on reaction type for sorting in sogs
yougotwill Aug 17, 2022
ef4bf0a
fix: pass yarn ready
yougotwill Aug 17, 2022
7ab8012
Merge branch 'clearnet' into emoji_reacts_blinded
yougotwill Aug 17, 2022
053e96a
test: fix existing reaction tests
yougotwill Aug 18, 2022
9d7befc
test: fix tests
yougotwill Aug 18, 2022
7ea40c3
feat: reactions should be disabled until a message request is approved
yougotwill Aug 18, 2022
bebe9fb
feat: added index generation in 1-1 and closed groups conversations
yougotwill Aug 18, 2022
201f851
fix: disabling reactions in message requests only should happen for p…
yougotwill Aug 18, 2022
bb8b670
fix: opengroups sort on the sogs side
yougotwill Aug 18, 2022
bf843a6
feat: reactions now have guaranteed sorting when rendered
yougotwill Aug 18, 2022
f8af6cf
fix: handle unsupported reactions in opengroups
yougotwill Aug 18, 2022
ced6d9a
fix: first batch of fixes after review
yougotwill Aug 19, 2022
78cbf4f
fix: 2nd batch of fixes after review
yougotwill Aug 19, 2022
dfd4599
fix: 3rd batch of fixes after review
yougotwill Aug 19, 2022
040b827
fix: qa fixes
yougotwill Aug 19, 2022
55047a9
fix: pass yarn ready
yougotwill Aug 19, 2022
be1ca64
fix: added missing Roboto font weights
yougotwill Aug 22, 2022
a50e87f
fix: tweaked copy and font weight for reaction clear all modal
yougotwill Aug 22, 2022
ce67e54
fix: some font weights didn't resolve correctly
yougotwill Aug 22, 2022
3eab736
fix: spacing between buttons on clear all modal
yougotwill Aug 22, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .sassrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"includePaths": [
"node_modules/sanitize.css",
"node_modules/emoji-mart/css",
"node_modules/react-h5-audio-player/lib",
"node_modules/react-contexify/dist",
"node_modules/react-toastify/dist"
Expand Down
9 changes: 8 additions & 1 deletion _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@
"moreInformation": "More information",
"resend": "Resend",
"deleteConversationConfirmation": "Permanently delete the messages in this conversation?",
"clear": "Clear",
"clearAllData": "Clear All Data",
"deleteAccountWarning": "This will permanently delete your messages, and contacts.",
"deleteContactConfirmation": "Are you sure you want to delete this conversation?",
Expand Down Expand Up @@ -451,5 +452,11 @@
"clearAllConfirmationTitle": "Clear All Message Requests",
"clearAllConfirmationBody": "Are you sure you want to clear all message requests?",
"hideBanner": "Hide",
"openMessageRequestInboxDescription": "View your Message Request inbox"
"openMessageRequestInboxDescription": "View your Message Request inbox",
"clearAllReactions": "Are you sure you want to clear all $emoji$ ?",
"reactionTooltip": "reacted with",
yougotwill marked this conversation as resolved.
Show resolved Hide resolved
"expandedReactionsText": "Show Less",
"reactionNotification": "Reacts to a message with $emoji$",
"readableListCounterSingular": "other",
"readableListCounterPlural": "others"
}
Binary file added fonts/Roboto-Black.ttf
Binary file not shown.
Binary file added fonts/Roboto-BlackItalic.ttf
Binary file not shown.
Binary file added fonts/Roboto-Light.ttf
Binary file not shown.
Binary file added fonts/Roboto-LightItalic.ttf
Binary file not shown.
Binary file added fonts/Roboto-Medium.ttf
Binary file not shown.
Binary file added fonts/Roboto-MediumItalic.ttf
Binary file not shown.
Binary file added fonts/Roboto-Thin.ttf
Binary file not shown.
Binary file added fonts/Roboto-ThinItalic.ttf
Binary file not shown.
Binary file removed images/emoji/emoji-sheet-twitter-32.png
Binary file not shown.
19 changes: 5 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@
"coverage": "nyc --reporter=html mocha -r jsdom-global/register --recursive --exit --timeout 10000 \"./ts/test/**/*_test.js\"",
"lint-full": "yarn format-full && eslint . && tslint --format stylish --project .",
"format-full": "prettier --list-different --write \"*.{css,js,json,scss,ts,tsx}\" \"./**/*.{css,js,json,scss,ts,tsx}\"",
"transpile": "yarn tsc && yarn parcel-util-worker",
"transpile": "yarn tsc && yarn parcel-util-worker && yarn sass",
"transpile:watch": "yarn grunt --force; tsc -w",
"integration-test": "npx playwright test",
"integration-test-snapshots": "npx playwright test -g 'profile picture' --update-snapshots",
"clean-transpile": "rimraf 'ts/**/*.js' 'ts/*.js' 'ts/*.js.map' 'ts/**/*.js.map' && rimraf tsconfig.tsbuildinfo;",
"ready": "yarn sass && yarn grunt && yarn lint-full && yarn test",
"ready": "yarn grunt && yarn lint-full && yarn test",
"sedtoAppImage": "sed -i 's/\"target\": \\[\"deb\", \"rpm\", \"freebsd\"\\]/\"target\": \"AppImage\"/g' package.json",
"sedtoDeb": "sed -i 's/\"target\": \"AppImage\"/\"target\": \\[\"deb\", \"rpm\", \"freebsd\"\\]/g' package.json",
"sass": "rimraf 'stylesheets/dist/' && parcel build --target sass --no-autoinstall --no-cache",
Expand All @@ -79,6 +79,7 @@
"rebuild-curve25519-js": "cd node_modules/curve25519-js && yarn install && yarn build && cd ../../"
},
"dependencies": {
"@emoji-mart/data": "1.0.2",
"@reduxjs/toolkit": "^1.4.0",
"abort-controller": "3.0.0",
"auto-bind": "^4.0.0",
Expand All @@ -99,7 +100,7 @@
"electron-is-dev": "^1.1.0",
"electron-localshortcut": "^3.2.1",
"electron-updater": "^4.2.2",
"emoji-mart": "^2.11.2",
"emoji-mart": "5.1.0",
"filesize": "3.6.1",
"firstline": "1.2.1",
"fs-extra": "9.0.0",
Expand Down Expand Up @@ -164,7 +165,7 @@
"@types/config": "0.0.34",
"@types/dompurify": "^2.0.0",
"@types/electron-localshortcut": "^3.1.0",
"@types/emoji-mart": "^2.11.3",
"@types/emoji-mart": "3.0.9",
"@types/filesize": "3.6.0",
"@types/firstline": "^2.0.2",
"@types/fs-extra": "5.0.5",
Expand Down Expand Up @@ -329,16 +330,6 @@
"sound/*",
"build/assets",
"node_modules/**",
"!node_modules/emoji-panel/dist/*",
"!node_modules/emoji-panel/lib/emoji-panel-emojione-*.css",
"!node_modules/emoji-panel/lib/emoji-panel-google-*.css",
"!node_modules/emoji-panel/lib/emoji-panel-twitter-*.css",
"!node_modules/emoji-panel/lib/emoji-panel-apple-{16,20,64}.css",
"!node_modules/emoji-datasource/emoji_pretty.json",
"!node_modules/emoji-datasource/*.png",
"!node_modules/emoji-datasource-apple/emoji_pretty.json",
"!node_modules/emoji-datasource-apple/img/apple/{sheets-128,sheets-256}/*.png",
"!node_modules/emoji-datasource-apple/img/apple/sheets/{16,20,32}.png",
"!node_modules/spellchecker/vendor/hunspell/**/*",
"!node_modules/@iconify/icons-mdi/*",
"node_modules/@iconify/icons-mdi/play-circle*",
Expand Down
2,817 changes: 2,817 additions & 0 deletions patches/emoji-mart+5.1.0.patch

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions protos/SignalService.proto
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,20 @@ message DataMessage {
EXPIRATION_TIMER_UPDATE = 2;
}

message Reaction {
enum Action {
REACT = 0;
REMOVE = 1;
}
// @required
required uint64 id = 1; // Message timestamp
// @required
required string author = 2;
optional string emoji = 3;
// @required
required Action action = 4;
}

message Quote {

message QuotedAttachment {
Expand Down Expand Up @@ -153,6 +167,7 @@ message DataMessage {
optional uint64 timestamp = 7;
optional Quote quote = 8;
repeated Preview preview = 10;
optional Reaction reaction = 11;
optional LokiProfile profile = 101;
optional OpenGroupInvitation openGroupInvitation = 102;
optional ClosedGroupControlMessage closedGroupControlMessage = 104;
Expand Down
6 changes: 0 additions & 6 deletions stylesheets/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,3 @@
@include color-svg($svg, black);
}
}

@keyframes highlightedMessageAnimation {
1% {
background-color: #00f782;
}
}
57 changes: 35 additions & 22 deletions stylesheets/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -104,27 +104,28 @@
box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.3);
}

button {
float: right;
margin-inline-start: 10px;
background-color: $color-loki-green;
border-radius: 100px;
padding: 5px 15px;
border: 1px solid $color-loki-green;
color: white;
outline: none;
user-select: none;

&:hover,
&:disabled {
background-color: $color-loki-green-dark;
border-color: $color-loki-green-dark;
}

&:disabled {
cursor: not-allowed;
}
}
// TODO is this being used anywhere? Seems not
// button {
// float: right;
// margin-inline-start: 10px;
// background-color: $color-loki-green;
// border-radius: 100px;
// padding: 5px 15px;
// border: 1px solid $color-loki-green;
// color: white;
// outline: none;
// user-select: none;

// &:hover,
// &:disabled {
// background-color: $color-loki-green-dark;
// border-color: $color-loki-green-dark;
// }

// &:disabled {
// cursor: not-allowed;
// }
// }

input {
width: 100%;
Expand Down Expand Up @@ -258,7 +259,7 @@
font-size: $session-font-md;
padding: 0px $session-margin-lg;
font-family: $session-font-default;
font-weight: 100;
font-weight: 400;
color: var(--color-text);

font-size: $session-font-md;
Expand Down Expand Up @@ -362,3 +363,15 @@
}
}
}

.reaction-list-modal {
.session-confirm-wrapper {
.session-modal__body {
width: 376px;
padding: 0;
.session-modal__centered {
margin: 0;
}
}
}
}
35 changes: 8 additions & 27 deletions stylesheets/_session.scss
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ label {
background-color: var(--color-modal-background);
color: var(--color-text);
border: var(--border-session);
border-radius: 14px;
box-shadow: var(--color-session-shadow);

overflow: hidden;
Expand Down Expand Up @@ -603,10 +604,14 @@ label {
z-index: 30;
min-width: 200px;
box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19) !important;
background: var(--color-cell-background);
background-color: var(--color-received-message-background);

&.react-contexify__theme--dark {
background-color: var(--color-received-message-background);
}

.react-contexify__item {
background: var(--color-cell-background);
background: var(--color-received-message-background);
}

.react-contexify__item:not(.react-contexify__item--disabled):hover
Expand Down Expand Up @@ -881,7 +886,7 @@ label {
&__description {
font-family: $session-font-default;
font-size: $session-font-sm;
font-weight: 100;
font-weight: 400;
max-width: 700px;
@include session-color-subtle(var(--color-text));
}
Expand Down Expand Up @@ -1142,30 +1147,6 @@ input {
}
}

.messages-container {
.session-icon-button {
display: flex;
justify-content: center;
align-items: center;
height: 40px;
width: 40px;
border-radius: 50%;
opacity: 1;
background-color: var(--color-cell-background);
box-shadow: var(--color-session-shadow);

svg path {
transition: $session-transition-duration;
opacity: 0.6;
fill: var(--color-text);
}

&:hover svg path {
opacity: 1;
}
}
}

.group-member-list {
&__container {
padding: 2px 0px;
Expand Down
55 changes: 51 additions & 4 deletions stylesheets/_session_constants.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,71 @@ $session-font-mono: 'SpaceMono';
// Roboto is an open replacement for $session-font-default
@font-face {
font-family: $session-font-default;
src: url('../fonts/Roboto-Regular.ttf') format('truetype');
src: url('../fonts/Roboto-Thin.ttf') format('truetype');
font-weight: 100;
}
@font-face {
font-family: $session-font-default;
src: url('../fonts/Roboto-ThinItalic.ttf') format('truetype');
font-style: italic;
font-weight: 100;
}
@font-face {
font-family: $session-font-default;
src: url('../fonts/Roboto-Light.ttf') format('truetype');
font-weight: 300;
}

@font-face {
font-family: $session-font-default;
src: url('../fonts/Roboto-Italic.ttf') format('truetype');
src: url('../fonts/Roboto-LightItalic.ttf') format('truetype');
font-style: italic;
font-weight: 300;
}
@font-face {
font-family: $session-font-default;
src: url('../fonts/Roboto-Regular.ttf') format('truetype');
font-weight: 400;
}
@font-face {
font-family: $session-font-default;
src: url('../fonts/Roboto-Italic.ttf') format('truetype');
font-style: italic;
font-weight: 400;
}
@font-face {
font-family: $session-font-default;
src: url('../fonts/Roboto-Medium.ttf') format('truetype');
font-weight: 500;
}

@font-face {
font-family: $session-font-default;
src: url('../fonts/Roboto-MediumItalic.ttf') format('truetype');
font-style: italic;
font-weight: 500;
}
@font-face {
font-family: $session-font-default;
src: url('../fonts/Roboto-Bold.ttf') format('truetype');
font-weight: 600;
font-weight: 700;
}
@font-face {
font-family: $session-font-default;
src: url('../fonts/Roboto-BoldItalic.ttf') format('truetype');
font-weight: 600;
font-weight: 700;
font-style: italic;
}
@font-face {
font-family: $session-font-default;
src: url('../fonts/Roboto-Black.ttf') format('truetype');
font-weight: 900;
}

@font-face {
font-family: $session-font-default;
src: url('../fonts/Roboto-BlackItalic.ttf') format('truetype');
font-weight: 900;
font-style: italic;
}

Expand Down
Loading