Commit graph

4225 commits

Author SHA1 Message Date
William Grant
3fce414e7c fix: remove unnecessary else in onQuoteClick 2023-06-01 14:16:23 +10:00
William Grant
db5f2d8534 feat: created util funciton lookupQuote to read from the quote lookup map
this consolidates the key lookup logic to one place for future proofing
2023-06-01 14:16:23 +10:00
William Grant
70156c33b3 fix: simplify checking isFromMe for communities in getMessageQuoteProps selector 2023-06-01 14:16:23 +10:00
William Grant
391db5590e fix: replace controller lookup with redux conversation lookup in getMessageQuoteProps
this is more performance and relies on the latest redux state
2023-06-01 14:16:23 +10:00
William Grant
e8b5f399f7 fix: made sure items in getMessagesBySenderAndSentAt are unique 2023-06-01 14:16:23 +10:00
William Grant
9b1be604b1 fix: removed redundant empty string check on quote author 2023-06-01 14:16:23 +10:00
William Grant
4d874d2738 fix: use --font-size-md for quote author size 2023-06-01 14:16:23 +10:00
William Grant
feb8f46966 fix: removed redundant document check from getTypeLabel 2023-06-01 14:16:23 +10:00
William Grant
5b503d32cc fix: use isUsAnySogsFromCache instead of getOurPubKeyStrFromCache in useQuoteAuthorName
this gives proper blinded key support
2023-06-01 14:16:23 +10:00
William Grant
ca6463da02 fix: make sure to show the quoted message above quotes that only have attachments and no text 2023-06-01 14:16:23 +10:00
William Grant
5111a141c8 feat: remove QUOTED_TEXT_MAX_LENGTH and sliceQuoteText 2023-06-01 14:16:23 +10:00
William Grant
a204464723 fix: move quote not found comment for better context 2023-06-01 14:16:23 +10:00
William Grant
fb51b20096 fix: cleanup TODOS 2023-06-01 14:16:23 +10:00
William Grant
d60d2c8c75 feat: quotes will show the authors name where possible
cleaned up extra author props on quote and created a hook instead
2023-06-01 14:16:23 +10:00
William Grant
e1a6f8e3fc feat: cleaned up getPropsForQuote and rely on getMessageQuoteProps selector for creating quote object
authorName is broken for some reason and we will need to fix it
2023-06-01 14:16:23 +10:00
William Grant
92ed15c6c4 feat: pass yarn ready 2023-06-01 14:16:23 +10:00
William Grant
aa3855e49f feat: getConversationQuotes selector for memoising quotes lookup state 2023-06-01 14:16:23 +10:00
William Grant
e90e548715 feat: improved quoted message not found
consolidated quote props lookup into getMessageQuoteProps, only use the db message in the quote components
2023-06-01 14:16:23 +10:00
William Grant
3bc187fa5e feat: performance improvements to quote lookup
getMessagesByConversation optionally returns quotes from messages in view, quoted messages that are deleted are removed from the lookup map. getMessageBySenderAndSentAt supports an array of messages and renamed to getMessagesBySenderAndSentAt
2023-06-01 14:16:22 +10:00
William Grant
1ff2969750 refactor: rename getMessageBySenderAndTimestamp to getMessageBySenderAndSentAt
its more clear what parameters are needed
2023-06-01 14:16:22 +10:00
William Grant
d706ecdead fix: show authorName in reply ui 2023-06-01 14:16:22 +10:00
William Grant
1da8fd9f96 feat: load quote images correctly on first render 2023-06-01 14:16:22 +10:00
William Grant
acdeabf306 feat: fixed click on a quote to go to the original message
added animation support to attachments when opening it via a quote
2023-06-01 14:16:22 +10:00
William Grant
ab028307f4 fix: show play button in video quote attachments 2023-06-01 14:16:22 +10:00
William Grant
6b2047b5c6 fix: Show correct attachment type in reply ui 2023-06-01 14:16:22 +10:00
William Grant
761a536b32 feat: removed unneeded quote stylesheet and QuoteGenericFile 2023-06-01 14:16:22 +10:00
William Grant
98e4474e75 feat: use quoteicon component in quoteimage
make sure to load message text is it exists for all quotes
2023-06-01 14:16:22 +10:00
William Grant
b1cc6ad85e fix: fix rendering of of text that has been emojified 2023-06-01 14:16:22 +10:00
William Grant
ff4366002b feat: converted quoteiconcontainer and to styled components
added support for generic file icon with consistent design. Still need to support know file types and metdata from the generic file component
2023-06-01 14:16:22 +10:00
William Grant
bdbdb477da feat: pass in all props to quote component
converted quote primary text to styled components
2023-06-01 14:16:22 +10:00
William Grant
f0aeb59d54 feat: converted quote image to styled components
remove border on quote if there is an attachment
2023-06-01 14:16:22 +10:00
William Grant
bf170e6e77 fix: fixed QuoteText type labels
show message not found in correct context
2023-06-01 14:16:22 +10:00
William Grant
23b6c9d25e feat: converted quote to styled components 2023-06-01 14:16:22 +10:00
William Grant
3249d2ff4c feat: converted quote author and text to styled components 2023-06-01 14:16:22 +10:00
William Grant
d7bc8213d6 fix: community quotes now dont break the app 2023-06-01 14:16:22 +10:00
William Grant
1d413a2f76 fix: moved QuoteIcon component into QuoteIconContainer 2023-06-01 14:16:22 +10:00
William Grant
1609ebfe32 feat: separated quote components
removed reference warning component since it is no longer needed
2023-06-01 14:16:22 +10:00
William Grant
a962ef2228 feat: getMessageQuoteProps now loads data from conversation.quotes state and loads correctly into the Quote 2023-06-01 14:16:22 +10:00
William Grant
ab1cf7a658 feat: added propsForQuote to message model props 2023-06-01 14:16:22 +10:00
William Grant
331a4e1e12 fix: resolved object is not extensible bug
forEach and async still don't play nice so used a regular for loop, added QuoteLookupType
2023-06-01 14:16:22 +10:00
William Grant
a83bc64d0a feat: added quote source data to the conversation state as a separate object
this should help performance when loading quotes in the UI since individual db lookups will no longer be required
2023-06-01 14:16:22 +10:00
William Grant
e78d1dfb87 fix: send full text body for quote
resolved regression with quote author name
2023-06-01 14:16:22 +10:00
William Grant
bd8ce826a8 fix: replaced getMessageBySenderAndSentAt with getMessageBySenderAndTimestamp
which does the same thing but is more verbose
2023-06-01 14:16:22 +10:00
William Grant
ad38b15809 feat: staged attachments rail stying updated
updated StyledStagedPlaceholderAttachment to be a styled functional component
2023-06-01 14:16:22 +10:00
William Grant
d7200abfab feat: link message reply done 2023-06-01 14:16:22 +10:00
William Grant
80689bbe22 feat: voice message reply done 2023-06-01 14:16:22 +10:00
William Grant
a07933a8ac feat: image reply done
added localisation for attachment description
2023-06-01 14:16:22 +10:00
William Grant
0d5c72555b feat: started updating reply to ui
finished text reply
2023-06-01 14:16:22 +10:00
Emily
75c42356c7 Adding in data test-id to path light and fixing disappearing messages test 2023-05-31 16:23:30 +10:00
Audric Ackermann
2068737cdd fix: break down deleteContact based on convo type 2023-05-26 15:51:23 +10:00
Audric Ackermann
7b42c64cf3 fix: make sure to include the associatedWith to handle 421 2023-05-26 10:51:02 +10:00
Audric Ackermann
0cbcecb508 fix: make avatar download job only take conversationId
and not the profileKey+url too as we need the db entry to be in sync
with the config wrapper data (otherwise the next commit would be made
with data out of date from the wrapper side)
2023-05-23 11:26:09 +10:00
Audric Ackermann
c42f828044 fix: hide logs when fetched items are sent back on saveConversation 2023-05-19 15:37:48 +10:00
Audric Ackermann
77e5e38e46 chore: update lodash types, use prebuilt curbe25519-js 2023-05-19 15:33:11 +10:00
Audric Ackermann
3b7589796c fix: noticebanner and scrollable right panel ui glitch 2023-05-19 13:05:41 +10:00
Audric Ackermann
50459d8da8 chore: remove completely commented test files related to groupv3 2023-05-19 11:15:16 +10:00
Audric Ackermann
7046c6c9b6 fix: cap unread count to the CONVERSATION.MAX_UNREAD_COUNT value 2023-05-19 11:00:22 +10:00
Audric Ackermann
2c2656d545 chore: make an internal build with userconfig forced ON 2023-05-19 10:56:35 +10:00
William Grant
1e1e6b0f7a feat: update max unread count per conversation 2023-05-18 16:42:03 +10:00
Audric Ackermann
6676bf77f9 chore: fix unit tests for userconfig changes 2023-05-18 16:28:01 +10:00
Audric Ackermann
10f6f9c892 Merge branch 'onboarding' into onboarding-with-integrationtest-2 2023-05-17 12:22:36 +10:00
Audric Ackermann
20ae5bd7d5
Merge pull request #11 from burtonemily/onboarding-with-integrationtest-2
Remove look for text in blocked user test and updated disappearing me…
2023-05-17 12:11:17 +10:00
Emily
4f66ff4c98 Removed double waitForAnimation function 2023-05-17 11:26:10 +10:00
Audric Ackermann
ce63ce3797 fix: linking allows legacy config message if one is found 2023-05-17 11:15:18 +10:00
Audric Ackermann
c0d69b0e00 chore: reduce notice banner text size to 15px 2023-05-17 10:47:36 +10:00
Audric Ackermann
dc59c25be7 fix: typo in NoMessageInConversation component 2023-05-17 10:46:58 +10:00
Audric Ackermann
153e592464 fix: send invite to closed group message to UserMessages namespace 2023-05-17 10:46:01 +10:00
Audric Ackermann
381413b33b fix: add copy pubkey on the triple dots menu too 2023-05-17 10:45:50 +10:00
Audric Ackermann
5d4bce3e04 fix: keep the "no pending message requests" opened when none are there 2023-05-17 10:45:09 +10:00
Audric Ackermann
6ac4dd8db5 fix: linking allows legacy config message if one is found 2023-05-17 10:09:22 +10:00
Emily
eeb94b937e Remove look for text in blocked user test and updated disappearing message test 2023-05-16 14:31:44 +10:00
Audric Ackermann
37639077a1 chore: fix the "Add contact to group" integrationt test 2023-05-16 14:26:03 +10:00
Audric Ackermann
a7e8c4a31d chore: reduce notice banner text size to 15px 2023-05-16 12:06:41 +10:00
Audric Ackermann
739693024b test: fix create group integration test 2023-05-16 11:45:34 +10:00
Audric Ackermann
37ec948daf fix: send invite to closed group message to UserMessages namespace 2023-05-16 10:59:27 +10:00
Audric Ackermann
b826dfd62b fix: add copy pubkey on the triple dots menu too 2023-05-16 10:40:21 +10:00
Audric Ackermann
52291ff524 chore: update integration tests to use generic open and close function 2023-05-16 09:45:58 +10:00
Audric Ackermann
768e0e1b5f chore: enable userconfig libsession by default for testing 2023-05-15 13:40:23 +10:00
Audric Ackermann
b4af13fce8 chore: enable userconfig libsession by default for testing 2023-05-15 13:39:57 +10:00
Audric Ackermann
eb04e75e33 chore: add cleanup of integration test linux cmd 2023-05-15 13:38:54 +10:00
Audric Ackermann
3827298078 Merge remote-tracking branch 'emily/integration_tests_2' into onboarding-with-integrationtest-2 2023-05-15 12:03:08 +10:00
Emily
9e3a569fac Adding tests set nickname, call checks, change profile picture on linked device and unsend message check. Adding into data-testids for aforementioned tests and cleaning up typings 2023-05-12 13:27:44 +10:00
Audric Ackermann
4d0e79f195 fix: legacy group with wrapper and disable right click while searching 2023-05-12 11:42:46 +10:00
Audric Ackermann
2a4bbbd587 feat: add the deleteContact and deleteConversation only menu items 2023-05-10 13:40:46 +10:00
Audric Ackermann
760ce5caa5 fix: add the maxSizeMap to have priority per retrieve namespaces 2023-05-09 14:00:50 +10:00
Audric Ackermann
6f6620f622 fix: skip new group messages when receved after group was removed 2023-05-08 14:56:21 +10:00
Audric Ackermann
bac2887c28 fix: update with latest libsession util 2023-05-04 16:14:17 +10:00
Audric Ackermann
318a77be4b fix: mark messages sent before our lastreadts from the wrapper as read 2023-05-04 11:43:22 +10:00
Audric Ackermann
328c131d8b chore: cleanup commented caching code of some wrappers 2023-05-03 10:11:12 +10:00
Audric Ackermann
3cd52d5b1a fix: add currentHashes and update expiry on every poll 2023-05-03 09:38:53 +10:00
Audric Ackermann
44483b7d23 fix: use releaseFeature from disappearing message PR as featureFlag 2023-05-02 12:06:08 +10:00
Audric Ackermann
8edb1275c2 fix: keep updating dumps even if user config feature is off 2023-05-01 16:30:17 +10:00
Audric Ackermann
051c4bb262 fix: merge the confSyncDumpJob into the confSyncJob 2023-05-01 14:37:50 +10:00
Audric Ackermann
6fe6544d6c fix: split up migration of initial user config dumps into two 2023-05-01 14:31:18 +10:00
Emily
eeb6cfb435 Adds data-testid to loading-animation, microphone recording button, recording permissions button, stop recording button, consolidates tests into user actions test, adds media to fixtures folder, updates linked device tests with avatar change, username change and group tests. Adds tests for messaging, sending image, video, document, gif and link with preview. Also updates reply message functionality to wait for loading animation 2023-05-01 13:43:19 +10:00
Audric Ackermann
1c48ff8a49 chore: include worker .node in addition to libsession .node 2023-05-01 09:52:16 +10:00
Audric Ackermann
9c0f40473c fix: readd dmg-builder as a resolution instead of root package 2023-04-27 15:46:12 +10:00
Audric Ackermann
ce186517a3 chore: lint code 2023-04-27 13:42:28 +10:00
Audric Ackermann
e263b701b0 chore: fetch latest archive from libsession nodejs git repo 2023-04-27 13:34:22 +10:00
Audric Ackermann
9d87ca2546 fix: test with libsession compiled with node-api 2023-04-26 15:02:27 +10:00
Audric Ackermann
0e286142f1 chore: add a redux settings slice, currently outdated banner inc 2023-04-26 11:27:29 +10:00
Audric Ackermann
0080254286 fix: add NoticeBanner showing when legacy config message received 2023-04-21 16:17:14 +10:00
Audric Ackermann
cbffc29950 fix: run tests for libsession-util integration and fix issue 2023-04-21 15:17:24 +10:00
Audric Ackermann
c2e3f1b587 chore: update libsession-util name & dependency 2023-04-19 16:50:16 +10:00
Audric Ackermann
3ecc89fab3 Merge remote-tracking branch 'upstream/master' into onboarding 2023-04-18 14:40:13 +10:00
Audric Ackermann
dc329668fa chore: fix unit tests 2023-04-18 10:52:24 +10:00
Emily
d64dbc163f Updates typing to User and Group, splits openApp function and create user function, updates saved test users for group upkeep function 2023-04-06 16:34:58 +10:00
Audric Ackermann
55a2767fce feat: do not approve a convo before sending the first message
but still sync it's state through the createdAt with libsession util
2023-04-06 16:11:36 +10:00
Audric Ackermann
faeb95fefd feat: add block/decline logic to msg request & wrapper 2023-04-06 14:07:50 +10:00
Audric Ackermann
ef6d9f1d51 feat: add empty states for each types of convo 2023-04-05 16:38:48 +10:00
Audric Ackermann
da57379762 fix: update certificate of seed nodes expiring soon 2023-04-05 13:29:57 +10:00
Audric Ackermann
760642e149 feat: use the lastJoinedAt and createdAt from the wrapper 2023-04-03 17:51:39 +10:00
Audric Ackermann
b843d66084 feat: add the lastJoined and createdAt timestamp from wrapper logic 2023-04-03 15:08:37 +10:00
Audric Ackermann
51e4f1dd48 feat: UI, use group info from wrapper if we have them or from DB 2023-04-03 14:08:10 +10:00
Audric Ackermann
3ff7281b6a chore: remove isGroup from the redux stored entry
as it is always = !isPrivate
2023-04-03 13:32:12 +10:00
Audric Ackermann
f3975b545a feat: use priority for hidden and pinned conversation 2023-04-03 12:03:23 +10:00
Audric Ackermann
027bd46ff7 fix: allow legacy config message during linking
We only handle handlethem after the new config message ones, so if there is a
shared config message on the network we will use it for the linking
process instead. The legacy one this commit is about is bound to be
removed completely and will only be used until our users have updated to
the new ones for some time.
2023-03-31 11:35:48 +11:00
Audric Ackermann
a5cc25c058
Merge pull request #2656 from tomobre/fix/warn-settings-link-previews
fix: on cancel link preview toggle, toggle stays off
2023-03-31 09:59:19 +11:00
Audric Ackermann
b4218311b0
Merge pull request #2680 from yougotwill/save_qr_code
feat: added ability to save qr codes on click
2023-03-31 09:37:38 +11:00
Audric Ackermann
fe5eea4c8d chore: fix critical yarn audit issues 2023-03-30 14:59:32 +11:00
Audric Ackermann
796ccf0582 feat: add handling and setting of the expireTimer for contacts 2023-03-30 14:19:01 +11:00
Audric Ackermann
51df7d80bb chore: remove parcel completely and grunt 2023-03-29 16:29:09 +11:00
Audric Ackermann
8a0074d2bd feat: add convo volatile info during migrations for each convo tracked 2023-03-29 14:30:35 +11:00
Audric Ackermann
1dcee5bc93 feat: wait for confSyncJob to be done before deleting account 2023-03-28 17:40:29 +11:00
Audric Ackermann
c623e2e49e fix: make the ConfSyncJob fetch be per destination 2023-03-28 17:00:05 +11:00
Audric Ackermann
554b445a3e feat: lookup for shared config message on link device 2023-03-28 14:44:41 +11:00
Audric Ackermann
0050352470 chore: move selected convo selectors to another file 2023-03-24 16:48:50 +11:00
Audric Ackermann
c3e9d503e4 fix: unread count and forced unread is synced 2023-03-24 14:42:13 +11:00
Audric Ackermann
c3a9d19882 chore: cleanup the lastMessage update logic 2023-03-16 16:08:50 +11:00
Audric Ackermann
1c50aacc34 chore: remove groupModerators sogs from the db, store in redux only 2023-03-16 15:47:03 +11:00
Audric Ackermann
bf2456df8e chore: do not store mentionedUs and unreadCount as attribute in convo 2023-03-16 10:50:31 +11:00
Audric Ackermann
f5efb52fea feat: remove closedgroupv3 uneeded stuff for now
also move the room stuff which can be kept in memory into another redux
slice
2023-03-10 16:39:48 +11:00
Audric Ackermann
2a5dc5f2a5 feat: add more compilation errors if forgetting to handle a wrapper type 2023-03-10 11:14:23 +11:00
Audric Ackermann
21d8151b8b feat: add convo volatile info mgmt 2023-03-09 17:12:59 +11:00
Audric Ackermann
c4e17d0825 fix: add mgmt of members in user groups wrapper 2023-03-08 17:39:29 +11:00
Audric Ackermann
bc905bdba1 feat: start of community handling in libsession util
also remove tracking of hashes for config namespaces
2023-03-01 16:27:25 +11:00
Audric Ackermann
37e335097e chore: remove unused bdecode logic as it is now in libsession util 2023-02-21 17:10:30 +11:00
Audric Ackermann
3c58f9c1e4 feat: add a hidden flag for convos and use it with the contactswrapper 2023-02-21 17:09:08 +11:00
Audric Ackermann
c4217cb564 feat: sync nickname, blocked and approved status for contacts 2023-02-20 15:11:04 +11:00
Audric Ackermann
f88acdb567 feat: remove blocked group tracking separately from the pubkeys 2023-02-17 11:43:21 +11:00
William Grant
e5f1e65194 feat: added ability to save qr codes on click
recovery phrase modal ui layout is now the same as edit profile modal, fixes for yarn ready
2023-02-17 10:47:55 +11:00
tomobre
c5a8b257cc fix: move line of forceupdate 2023-02-16 11:40:31 +11:00
tomobre
18639ad8fd fix: remove space 2023-02-16 11:39:14 +11:00
tomobre
77f0138d49 fix: review changes #2, refactorised toggleLinkPreviews function 2023-02-16 11:36:52 +11:00
mdPlusPlus
13c1b207f4 Add missing space between "PNG" and "GIF" in error message 2023-02-16 01:15:25 +01:00
mdPlusPlus
1d6ed17ac7 Fix typos via codespell 2023-02-16 01:02:45 +01:00
Audric Ackermann
b2237efe51 feat: insert all contacts into wrapper before syncing it 2023-02-15 16:02:38 +11:00
tomobre
138d8da676 fix: function outside component, refactorised toggleLinkPreviews function 2023-02-15 15:17:23 +11:00
Audric Ackermann
8202abe12b
Merge pull request #2676 from tomobre/fix/undefined-country
Fix/undefined country
2023-02-15 10:52:15 +11:00
tomobre
5edd06a1e5 Merge branch 'clearnet' into fix/warn-settings-link-previews 2023-02-14 14:43:08 +11:00