Commit graph

2442 commits

Author SHA1 Message Date
Audric Ackermann e6b0315a25 fix: trigger sync and initial sogs polling after app start 2022-08-12 13:24:15 +10:00
Audric Ackermann 6f4b70e650 fix: allow non admin mods to delete message for deletion 2022-08-09 14:37:18 +10:00
Audric Ackermann 242d51ca8d
Id blinding + onionv4 + new endpoints for sogs and fileserver (#2347)
* Added Onionv4 support to file server, sogs and pn server
* Added blinded message support
* Updated endpoints for sogs and file server to remove legacy ones
2022-08-08 09:50:48 +10:00
Audric Ackermann 354022f83d
Merge pull request #2359 from ianmacd/pr33
Trim leading and trailing whitespace on message composition and display.
2022-07-11 15:44:19 +10:00
William Grant d3d0ac80a0 feat: you can now choose where to save the debug logs
debug log window now follows the app theme, logs are save as txt
2022-06-20 14:51:52 +10:00
Ian Macdonald aeb5caf921
Trim leading and trailing whitespace on message composition and display. 2022-06-04 16:56:30 +02:00
Audric Ackermann 9251711fa5
fix: optmize markAllAsRead when no expiration timer
we basically do a single sql call to mark everything as read for that
conversation, force unreadCount to 0 and mention state to false, and
trigger read syncs if needed.

the optomization cannot work for conversation with expiration timer for
now
2022-05-20 13:19:48 +10:00
Audric Ackermann 19decad766
fix: send read receipt when settings ON and window focused 2022-05-19 16:28:31 +10:00
Audric Ackermann 83b44d0abf
fix: disable auto play of audio messages on message first load 2022-05-19 13:05:07 +10:00
Audric Ackermann 55869fbe37
fix: swap confirm and cancel buttons in the confirmDialog 2022-05-18 13:21:40 +10:00
Audric Ackermann 3713e95a9f
feat: ask user for opengroup pruning on/off 2022-05-18 13:21:35 +10:00
Ian Macdonald 695e867221
Add setting to specify minimum age of open group messages to prune.
When an open group has more than 2000 messages, those older than the
specified number of months will be pruned on application start-up.

Fixes #2310.
2022-05-18 10:44:35 +10:00
Audric Ackermann ec76057c5e
Merge integration test (#2313)
* Testing playwright for Desktop automation

* add more data-testid field

* remove commited test-results

* test: skip group upkeep for now

* test: mention test create group instead of restoring from seed

* test: run on testnet

* fix: revert messagebanner unread count changes

from commit 8107d75e89

Co-authored-by: Emily <emily@oxen.io>
2022-05-17 13:22:13 +10:00
Audric Ackermann 8de8f014dd
fix: password input errors in seeddialog 2022-05-13 16:10:51 +10:00
Audric Ackermann cfab7057fb
fix moment locale globally 2022-05-12 12:10:45 +10:00
Will G 511567bc78
fix: emoji panel light mode support (#2292)
* fix: emoji panel light mode support

* fix: link darkMode prop to redux state

* fix: use getTheme selector directly
2022-05-11 16:01:33 +10:00
Ian Macdonald 0991c23658
Fix typo in constant name. 2022-05-05 09:43:22 +02:00
Audric Ackermann bfb33d14c5
Merge pull request #2269 from Bilb/get-initials-skip-non-alphabet-chars
Get initials skip non alphabet chars
2022-04-27 13:53:33 +10:00
Audric Ackermann a115d385dd
merge linkify component to messagebody as this is the only one using it 2022-04-27 13:40:00 +10:00
Audric Ackermann cae4d46492
allow to save attachments even if there is multiple of them
This is a bit dirty for now

Relates #2229
2022-04-27 12:18:45 +10:00
Audric Ackermann 1933bc8270
Merge pull request #2264 from ianmacd/pr19
Style message request counter as per conversation message count.
2022-04-27 12:10:55 +10:00
Audric Ackermann da9df532b0
Merge pull request #2242 from Bilb/node-side-in-ts
Node side + web worker in typescript
2022-04-27 12:10:31 +10:00
Audric Ackermann 8b299b6153
Merge koray fixes for emoji selection 2022-04-27 11:47:59 +10:00
Audric Ackermann 0efce6ea2d
updating workflows actions version 2022-04-26 16:43:30 +10:00
Ian Macdonald 8107d75e89
Style message request counter as per conversation message count. 2022-04-25 12:28:13 +02:00
Audric Ackermann 5c8e2b4044
cleanup swarm unused after removing unused convos 2022-04-21 14:04:11 +10:00
Audric Ackermann b8498f7a2b
fix display of spinner while db decrypting 2022-04-21 13:22:14 +10:00
Audric Ackermann 1e713de511
Merge remote-tracking branch 'k/spinner-on-load' into node-side-in-ts 2022-04-21 11:31:28 +10:00
Audric Ackermann 7c1707f48e
drop old messages of opengroup 2022-04-21 11:29:14 +10:00
Audric Ackermann 335e452730
moved DebugLogView to components folder 2022-04-20 15:50:56 +10:00
Audric Ackermann f4bf960568
Merge pull request #2243 from warrickct/show-group-members-freeze-fix
fix group members sorting causing error.
2022-04-20 15:38:38 +10:00
Audric Ackermann 3cfcf128a5
Merge remote-tracking branch 'upstream/master' into node-side-in-ts 2022-04-20 15:32:05 +10:00
Audric Ackermann 13e2f81f26
Merge remote-tracking branch 'upstream/clearnet' into node-side-in-ts 2022-04-20 15:12:28 +10:00
Audric Ackermann 5c9b34fb86
lint files 2022-04-20 10:34:21 +10:00
koray-eren d7361f0774 fix linter issue 2022-04-14 14:21:00 +10:00
koray-eren c872f22014 password screen spinner implemented 2022-04-14 14:06:48 +10:00
Audric Ackermann af9d2fdfa1
get rid of libtextsecure.js and componnets.js 2022-04-14 11:18:01 +10:00
Audric Ackermann 01bb200b24
reduce number of commits during opengroup handling of message 2022-04-13 16:51:53 +10:00
Audric Ackermann 062db5caab
move filterDuplicatesFromDbAndIncoming to its own file and test
also add pending tests to do for in memory db and updater
2022-04-13 14:59:08 +10:00
Audric Ackermann 0158fd5ebb
filter duplicates on opengroup poll in a single sql call 2022-04-13 13:52:05 +10:00
Audric Ackermann 00d70db0be
queue user profile avatars update
also add some tests for the promise utils
2022-04-11 17:18:11 +10:00
Audric Ackermann 02612280c3
fix multi select including audio messages 2022-04-07 13:45:05 +10:00
Audric Ackermann 475c92eeb4
migrate about_start to not use jquery 2022-04-07 11:42:22 +10:00
Audric Ackermann 1ebff6b3ae
make sure reply is available to read messages
and do not handle read messages for non private convo1
2022-04-06 16:21:24 +10:00
Audric Ackermann 0ebc1d7e92
split attachmnent logic between what is used on main and renderer 2022-04-06 16:21:19 +10:00
Audric Ackermann 332d58027f
show draggable call container when opening settings from call convo 2022-04-06 14:18:37 +10:00
koray-eren d78056618c fix linter issue 2022-04-06 11:15:23 +10:00
koray-eren ebe1ae8f12 fix emoticon search for emoji picker, typo 2022-04-06 11:06:19 +10:00
koray-eren b4a57b32eb changed emoji trigger to exclude non-alphanumeric characters 2022-04-04 16:01:02 +10:00
warrickct 3eb6bec908 fix group members sorting causing error. 2022-04-04 15:39:45 +10:00
Audric Ackermann 9f8920ef2c mostly working but need to improve perfs 2022-04-04 08:53:37 +10:00
Audric Ackermann 909bca8714 Merge branch 'clearnet' into enable-calls-remove-featureflag 2022-04-01 15:50:10 +11:00
Audric Ackermann fe57531797 Sesion 1.8.4 with calls enabled 2022-04-01 15:46:27 +11:00
Audric Ackermann 280cc494e8 test with webpack - not working 2022-04-01 09:58:24 +11:00
Audric Ackermann 2dfd09a7b1 app kind of start background side 2022-03-31 10:22:13 +11:00
Audric Ackermann ff43cfa593 move worker_interface and logs and i18n to TS 2022-03-30 08:36:20 +11:00
Audric Ackermann afad9f823a
Merge pull request #2237 from Bilb/fix-add-attachments-ourself
make sure the conversation with ourself is marked approvedMe
2022-03-29 16:16:42 +11:00
Audric Ackermann 70ee8cefdc WIP sql.js 2022-03-29 15:18:26 +11:00
Audric Ackermann bfaeda5cdb
make sure the conversation with ourself is marked approvedMe 2022-03-28 16:22:20 +11:00
Audric Ackermann ba53330afd
add tests for getInitials 2022-03-28 13:32:23 +11:00
Audric Ackermann 51575d2f56
moved views to TS but broken 2022-03-24 11:15:21 +11:00
Audric Ackermann 449751a891
remove some refs to Signal.Data in ts 2022-03-23 16:55:04 +11:00
Audric Ackermann d99cdc48f4
rename background.js to main_start.js 2022-03-23 16:50:17 +11:00
Audric Ackermann 7d570fec52
move linkPreviews.js to ts 2022-03-23 16:19:38 +11:00
Audric Ackermann 6bd835dfc3
move storage.js to ts 2022-03-23 15:57:11 +11:00
Audric Ackermann e78224db05
after moving expiring message and wallclock to TS 2022-03-23 10:30:57 +11:00
Audric Ackermann d7f84168ac
before start of moving bg JS to TS 2022-03-23 10:24:05 +11:00
Audric Ackermann ce0848c8bf
Merge branch 'clearnet' into updater-reword 2022-03-22 11:07:06 +11:00
Audric Ackermann 9d4989b66d
cleanup constants.tsx file
and fixup commit id showing at the bottom in settings
2022-03-22 10:59:45 +11:00
Audric Ackermann 89757a95a6
use readyForUpdates to trigger update from renderer
this is used to only start the updater once the fileserver returned use
the latest release
2022-03-21 16:48:25 +11:00
Audric Ackermann d2fc384d16
fix text selection on text 2022-03-16 17:01:51 +11:00
Audric Ackermann 67e2fea70c
Merge pull request #2207 from ianmacd/pr8
Allow user names up to 26 characters long, in line with Android.
2022-03-16 14:11:37 +11:00
Ian Macdonald a11b078d5b
Allow user names up to 26 characters long, in line with Android.
See https://github.com/oxen-io/session-android/blob/master/libsession/src/main/java/org/session/libsession/utilities/SSKEnvironment.kt#L29
2022-03-15 08:56:34 +01:00
Audric Ackermann 234e9b160e
Make sure updater do not hit github before checking fileserver 2022-03-15 17:19:38 +11:00
Audric Ackermann 49bae1925d
open message request reset opened convo and is a settings itself 2022-03-15 11:04:19 +11:00
Audric Ackermann 878c870a8b
initials are always uppercased 2022-03-11 10:45:08 +11:00
Audric Ackermann 2cf2d9eff7
make sure datebreak keep text color 2022-03-10 15:12:20 +11:00
Audric Ackermann 461ce4a7fb
Merge branch 'clearnet' into fix-unread-indicator-light 2022-03-10 14:54:41 +11:00
Audric Ackermann 551fc4e2d7
make the unread message banner on a single line 2022-03-10 14:52:47 +11:00
Audric Ackermann 602a287263
join closed groups from config only on the first config message 2022-03-09 15:04:28 +11:00
Audric Ackermann e853f57e6b
fix unread indicator color for light theme 2022-03-09 13:25:00 +11:00
Audric Ackermann 71aa6c813c
Merge remote-tracking branch 'upstream/clearnet' into fix-i18n-with-dollars-sign 2022-03-09 12:00:47 +11:00
Audric Ackermann 359dcaa43a
Merge pull request #2174 from warrickct/msg-request-ui-2
Message request
2022-03-09 11:47:58 +11:00
Audric Ackermann 8a13a9e6e0
Merge pull request #2183 from ianmacd/pr5
Use up to two scaled placeholder characters for users with no avatar.
2022-03-07 13:30:51 +11:00
Audric Ackermann e1f2393c3a
cleanup translated strings 2022-03-07 13:26:57 +11:00
Ian Macdonald fa0c1fff88
Use up to two scaled initials as a placeholder for users with no avatar.
If the user's name consists of just a single word, then use up to two
letters from that word as the placeholder.

This provides better differentiation of users than the current practice
of using just a single letter for everyone.
2022-03-04 10:56:43 +01:00
warrickct 821f4d73ff Merge branch 'clearnet' into msg-request-ui-2 2022-03-03 14:02:10 +11:00
Audric Ackermann f1900f9f36
remove some unused strings
and fix tos links #2176
2022-03-03 14:00:47 +11:00
warrickct 913947a517 Minor padding fixes 2022-03-03 11:25:45 +11:00
warrickct 3c2cc9be8a Only check for incoming messages on initial render of request UI. 2022-03-02 16:48:10 +11:00
warrickct 68eceae153 fixed flex behaviour for call and avatar convo header buttons. 2022-03-02 15:53:02 +11:00
warrickct cf6a5b3446 Request banner appearing and tallying based on only unread requests 2022-03-02 15:47:32 +11:00
warrickct 451fb351a3 removing comments 2022-03-02 14:49:55 +11:00
warrickct f7a4e7ee81 Move disappearing message indicator to right of conversation header. 2022-03-02 13:09:42 +11:00
warrickct e4f4328232 rename request evaluating function for clarity. Prevent disappearing messsages from being activated by request recipient before the request has been accepted. 2022-03-02 13:04:33 +11:00
warrickct 7315651c63 Adding unstaged changed from last commit. (adding accept/decline to convo header menu and removal of disappearing messages menu item) 2022-03-02 12:46:41 +11:00
warrickct 61cdae7622 Remove disappearing messages from convo header menu, added accept and decline menu options. 2022-03-02 12:45:51 +11:00
warrickct dd0aa4ea92 Fixed hook for evaluating menu item rendering. 2022-03-02 12:39:10 +11:00
warrickct f5bc347898 Fix conversation header overlapping at small widths. 2022-03-02 12:29:44 +11:00
warrickct ebf3198818 Remove dash typo for zoom settings. 2022-03-02 12:11:06 +11:00
warrickct 88f719ed6e Fix case where error occurs after leaving a group. 2022-02-28 16:19:48 +11:00
warrickct e3e6e5b655 Removing mark all as read menu option from request items. 2022-02-28 11:12:05 +11:00
warrickct 6552f032be Fixing right click menu interactions with the request banner 2022-02-28 11:02:31 +11:00
warrickct 049f86a6e9 Fix conversation header centering alignment. 2022-02-28 10:39:23 +11:00
warrickct eed72a6b1b Removing some menu items from message request context menu. 2022-02-25 16:15:47 +11:00
warrickct 56c1a06a28 Adding rightclick accept/decline menu options for message requests. Adding hide menu item for message request banner. 2022-02-25 14:17:34 +11:00
warrickct 600ef86ea7 linting fixes 2022-02-25 10:59:54 +11:00
warrickct 065b8ab533 Added closing declined conversation requests if theyre open. Return to regular inbox on clear all. 2022-02-25 09:58:35 +11:00
warrickct af4457f68f Clicking message icon in action panel closes request overlay. 2022-02-24 15:42:49 +11:00
warrickct 07533232fb Move clear all button for request to bottom of overlay panel. 2022-02-24 15:36:12 +11:00
warrickct 5888fecda4 Add confirmation dialog for clear all message requests. 2022-02-24 15:11:10 +11:00
Ian Macdonald 0c0543cc45
Use accent colour to distinguish last read indicator. 2022-02-24 03:04:41 +01:00
warrickct 08ba24c3c9 refactoring 2022-02-24 10:17:17 +11:00
warrickct 93f37ba66f Refactoring to evaluate conversation request status in a single place. 2022-02-23 20:45:18 +11:00
warrickct 2d9679315c Fix convo screen request UI appearing when creating a new convo while having another convo active with incoming messages. 2022-02-23 11:21:03 +11:00
warrickct 2258c6da4c Fixing linting errors. 2022-02-22 12:41:15 +11:00
warrickct 18a739b05b update local UI for blocking all conversations. Removing some unused vars 2022-02-22 11:41:29 +11:00
warrickct 9bbac225ad Remove prevention of sending more than one message for an unapproved conversation. 2022-02-22 09:48:39 +11:00
Audric Ackermann 3fed22048b
rename a few loki to session 2022-02-18 13:03:47 +11:00
warrickct f5972a5d1c Calling setting convo isApproved. Removing some unnecessary conditionals. 2022-02-17 22:05:13 +11:00
warrickct ffad806366 Prevent attachments being sent for unapproved conversations. 2022-02-17 20:29:31 +11:00
warrickct 09bcbe6139 Adding empty state for request list. 2022-02-17 18:35:58 +11:00
warrickct dcd78e85f6 QA fix - msg request accept buttons showing at wrong stage. 2022-02-17 18:09:18 +11:00
warrickct bfec321da7 PR changes 2022-02-15 15:20:54 +11:00
warrickct abc188e889 Additional PR changes 2022-02-15 15:00:23 +11:00
warrickct efa482b002 adding pr changes 2022-02-15 14:42:39 +11:00
warrickct 0db3c76756 Fixing linting errors 2022-02-15 13:59:58 +11:00
warrickct 893f7e99b8 Merge branch 'clearnet' into message-request-ui 2022-02-15 12:04:14 +11:00
Ian Macdonald 6613161b20
Don't nanny the user. Allow all file types as attachments.
The Android client already has no such restrictions, and these are
ineffective anyway, as they are based on the file's name, not its
payload.
2022-02-14 09:25:53 +01:00
warrickct ee9156d4f8 Merge clearnet into message-request-ui 2022-02-14 16:42:53 +11:00
warrickct bc6edd7774 Adding unhiding of message request banner when receiving a new convo request. 2022-02-14 14:47:54 +11:00
warrickct 7223fc067f Adding ability to view requests from settings. 2022-02-14 11:02:32 +11:00
warrickct 07f6681aae Refactoring subcomponents. Adjusting conditional inbox filters to always apply msg request logic. 2022-02-14 10:50:08 +11:00
warrickct ac8c4ac2eb Removing msg req feature flag. 2022-02-14 09:57:43 +11:00
warrickct 36ca2a767c Adding PR changes 2022-02-11 12:14:58 +11:00
warrickct d627b8e11d Requesting flow working with sending message as acceptance. 2022-02-10 16:49:56 +11:00
audric 5b34419461
disable selection update on emoji selected for now
this is kind of broken when adding emojis not at the end
2022-02-10 14:41:41 +11:00
audric b1221c6809 call: show video buttons if the cursor is over the app anywhere 2022-02-09 11:02:18 +11:00
audric 5c8e4ef12b call: add local stream display in fullscreen 2022-02-09 10:41:53 +11:00
Audric Ackermann 445852eca1
split up a bit of the mentions/emoji input 2022-02-08 17:07:12 +11:00
Audric Ackermann 2478a78794
move mentions and emojify to a functional component 2022-02-08 11:17:39 +11:00
Audric Ackermann 19722b6bdc
remove other emoji dependency and use unicode to render them in message
Relates #2151
2022-02-08 10:43:56 +11:00
Audric Ackermann 1efe6ca728
click oin @ bring to latest mention 2022-02-07 11:44:07 +11:00
Audric Ackermann 42ccf06ff0
fetch last active users quicker on convo changes to public convo 2022-02-07 09:50:04 +11:00
Audric Ackermann a19a6a33c7
migrate already set nickname convo to name + profileName index 2022-02-04 14:32:06 +11:00
Audric Ackermann a3eb80abcf
fix group updates outgoing message status in left pane 2022-02-04 13:37:50 +11:00
Audric Ackermann 5b6d0d25f5
fix typo noteSelf results and shortened pubkey for unknown contacts 2022-02-03 16:02:25 +11:00
warrickct 2d66b1db4e Adding styling to conversation window for a message request. 2022-02-03 14:04:35 +11:00
Audric Ackermann d6a8f5e92b
allow searching for nickname or name for contacts 2022-02-03 10:58:49 +11:00
Audric Ackermann ceb5317160
remove profile_images as we are not using it 2022-02-03 10:58:49 +11:00