Commit Graph

9260 Commits

Author SHA1 Message Date
ThomasSession
e6762a12d0
Revert "Release/1.18.5 (#1535)"
This reverts commit 7f90a9866b.
2024-07-09 13:33:42 +10:00
ThomasSession
8c4bd9b448
Release/1.18.5 (#1536)
* Fix issue with span being the full length (#1528)

* Proper display of unresolved names in mentions (#1530)

* Fix issue with span being the full length

* Making sure a mention with a username without a resolved name still displayed with the appropriate style with the truncated is

* Testnet build (#1532)

Co-authored-by: fanchao <git@fanchao.dev>

* Allow "public.loki.foundation" to be accessed by http (#1534)

Co-authored-by: fanchao <git@fanchao.dev>

* Bumping the version code and name

* Reverting temporary change

---------

Co-authored-by: Fanchao Liu <273191+simophin@users.noreply.github.com>
Co-authored-by: fanchao <git@fanchao.dev>
2024-07-09 11:45:30 +10:00
ThomasSession
7f90a9866b
Release/1.18.5 (#1535)
* fix: Authenticate all Open Group API calls

* Use unblinded authentication when we have `capabilities` data for the open group server we are sending the request to but don't have the `blind` capability
* Use blinded authentication when we haven't gotten any `capabilities` for an open group server, or if we have `capabilities` and the server has the `blind` capability

* Hide send button when message contains only whitespace

* Fix bug displaying user ID when quoting own message

* Fix notification update for incoming unsend request

* Improve check if author is own user when quoting messages

* Fixed video call auto rotate, when auto rotate is disabled

* refactor: simplify comparison

* Stop playing message if deleted

* Accidental change

* Accidental change

* Comments

* Feedback

* Comments

* Import

* Fix delete message for everyone doesn't stop the audio playing

* Correct the usage of flowOn

* Import

* Optimise XML

* Remove unused file

* Remove view pools

* Remove the use of executor in ThreadUtils

* Using trim and empty to capture semantic concept of nothing being in there

* Remove config checks (PR 1294)

Refactor: remove checks for whether new config is enabled throughout config factory generation.
First commit from PR 1294.

* [SES-2162] - Remove wrapping of config message (#1517)

* Remove wrapping of config message

* Addresses feedback

* Merged in ThreadUtils fix

* JDK installation

* Revert JDK change

---------

Co-authored-by: fanchao <git@fanchao.dev>

* Update libsession

* [SES-337] Add rounded corners to thumbnail in QuoteView (#1285)

* Add rounded corners to thumbnail in QuoteView

* Simplify ThumbnailView

* Cleanup ThumbnailView

* Removed include custom attributes

The custom attributes are not passed to the view.
I added the radius programatically instead.

* Clipping whole thumbnail view instead of just the image requests

---------

Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>
Co-authored-by: ThomasSession <thomas.r@getsession.org>

* Highlight @You mentions (#985)

* Highlight @You mentions

* fix: resolve merge conflicts

* Setting the proper design rules for mentions

* New RoundedBackgroundSpan, applied to "you"  mentions

The rounded background highlighter can take padding, so there is no need to add those extra spaces at the start and end.

* Better mention highlight logic

Some mention highlight should only format the text and not apply any styling.
Also making sure we cater for all cases properly

* Updated the text color logic based on design rules

* Fine tuning the color rules

* Removing usage of Resources.getSystem()

Only making the db call if there actually is a mention

* Moving color definition outside the loop to avoid repetitions

---------

Co-authored-by: charles <charles@oxen.io>
Co-authored-by: 0x330a <92654767+0x330a@users.noreply.github.com>
Co-authored-by: ThomasSession <thomas.r@getsession.org>

* [SES-2018] Refactor mention  (#1510)

* Refactor mention

* Fixes robolectric test problem

* Fixes tests

* Naming and comments

* Naming

* Dispatcher

---------

Co-authored-by: fanchao <git@fanchao.dev>

* [SES-1966] Attachment batch download and tidy-up (#1507)

* Attachment batch download

* Addressed feedback and test issues

* Feedback fixes

* timedWindow for flow

* Feedback

* Dispatchers

* Remove `flowOn`

* New implementation of timedBuffer

* Organise import

* Feedback

* Fix test

* Tidied up logic around `eligibleForDownload`

* Updated comment

---------

Co-authored-by: fanchao <git@fanchao.dev>

* Fix issue with span being the full length (#1528)

* Proper display of unresolved names in mentions (#1530)

* Fix issue with span being the full length

* Making sure a mention with a username without a resolved name still displayed with the appropriate style with the truncated is

* Testnet build (#1532)

Co-authored-by: fanchao <git@fanchao.dev>

* Allow "public.loki.foundation" to be accessed by http (#1534)

Co-authored-by: fanchao <git@fanchao.dev>

* Bumping the version code and name

* Reverting temporary change

---------

Co-authored-by: charles <charles@oxen.io>
Co-authored-by: andrew <andrewgallasch@gmail.com>
Co-authored-by: aaronkerckhoff <aaronkerckhoff@gmail.com>
Co-authored-by: Rugved Darwhekar <darwhekarrugved@gmail.com>
Co-authored-by: 0x330a <92654767+0x330a@users.noreply.github.com>
Co-authored-by: fanchao <git@fanchao.dev>
Co-authored-by: Fanchao Liu <273191+simophin@users.noreply.github.com>
Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>
Co-authored-by: ceokot <ceokot@users.noreply.github.com>
2024-07-09 11:45:25 +10:00
ThomasSession
0300be25f6 Reverting temporary change 2024-07-09 09:58:49 +10:00
ThomasSession
2b27b7d5e0 Bumping the version code and name 2024-07-09 09:33:06 +10:00
bemusementpark
84b1fb6527 Truncate name to 100 bytes on restore account 2024-07-08 13:11:49 +09:30
bemusementpark
1570e2338d Update libsession-util/libsession-util 2024-07-08 11:50:25 +09:30
Fanchao Liu
075341abe1
Allow "public.loki.foundation" to be accessed by http (#1534)
Co-authored-by: fanchao <git@fanchao.dev>
2024-07-08 11:24:37 +10:00
Fanchao Liu
e1f1372e17
Testnet build (#1532)
Co-authored-by: fanchao <git@fanchao.dev>
2024-07-08 10:34:13 +10:00
bemusementpark
fe0cbcd551 Fix Poller Log TAG 2024-07-05 17:01:24 +09:30
bemusementpark
fa5b10e2e1 Merge remote-tracking branch 'ry/poller-fix' into on-3 2024-07-05 16:55:18 +09:30
bemusementpark
9c10bbfe65 Merge branch 'od' into on-2 2024-07-05 12:04:42 +09:30
ThomasSession
15b3b18321
Proper display of unresolved names in mentions (#1530)
* Fix issue with span being the full length

* Making sure a mention with a username without a resolved name still displayed with the appropriate style with the truncated is
2024-07-05 10:48:51 +10:00
ThomasSession
bbb1b2b517
Fix issue with span being the full length (#1528) 2024-07-04 17:50:17 +10:00
bemusementpark
81f9bf9412 Fix refresh on open search 2024-07-04 14:58:18 +09:30
bemusementpark
a4ee521ee0 Fix Search 2024-07-04 14:48:31 +09:30
bemusementpark
ca66d115a3 Unknown contact should go under # 2024-07-03 19:07:15 +09:30
bemusementpark
39f9b959ce Add dialog to backpress on create account flow 2024-07-03 18:53:55 +09:30
bemusementpark
4660905c09 Remove unneeded SEEN_WELCOME_SCREEN_PREF 2024-07-03 18:28:12 +09:30
bemusementpark
40b901d417 Kick user to welcome screen if they have no account id 2024-07-03 17:26:31 +09:30
AL-Session
1e02845fd2
[SES-1486] Short voice message fix (#1523)
* Initial working push with debug comments

* Fixes #1522

* Cleanup, prevent multi-pointer recording, and don't show short msg toast if locked to record quickly

* Adjusted comment phrasing

* Fix comment phrasing

* Fixed inadvertant short voice message toast on exit conversation activity

* Comment adjustment

* Comment phrasing

* Adjusted AudioRecorder.startRecording to take a callback function rather than the InputBar

* Performed Thomas' PR feedback

* Move comment to more relevant place

* Removed unused / leftover callback definition

* Removed all redundant null checks after asserting binding is not null

* Removed remaining not-null assertions & added some logged feedback to fail states

* Addressed PR feedback

* Implemented additional PR feedback

* Adjusted InputBar property visibility as per PR feedback & adjusted Toast string following discussion with Lucy

* Minor adjustment to inform user if we see an obvious network issue when sending a voice message - also tweak the locked Cancel button size to prevent text entry when locked to voice recording

* Adjust comment phrasing following further testing

* Added TODO comments to replace hard-coded string in toasts

* Addressed Thomas PR feedback suggestion

* Addressed another feedback suggestion

* Adjustment to continue informing user of network / node path issues

* Improved & moved network check method

* Corrected ticket number into TODO comments

* Addressed Andy PR feedback

* Adjust network connectivity checks to just log issues rather than inform the user (as per Rebecca / Kee convo)

---------

Co-authored-by: alansley <aclansley@gmail.com>
2024-07-03 14:44:26 +10:00
bemusementpark
7111bb7725 Merge branch 'od' into on-2 2024-07-03 12:12:51 +09:30
bemusementpark
ae4c6b8a4e Fix RadioButton a11y 2024-07-03 08:27:07 +09:30
AL-Session
a30f00104e
[SS-54] Add dialog to allow local deletion if network deletion fails (#1526)
* WIP

* Push before attempting some HTTPRequestFailedException rate limiting

* Functionality now works

* Merging dev resulted in some subproject commit change so pushing that

* Fixes #1525

* Addressed Andy PR feedback

* Addressed further PR feedback from Andy

---------

Co-authored-by: alansley <aclansley@gmail.com>
2024-07-02 16:42:49 +10:00
bemusementpark
d4c433a926 Fix shareFlow#tryEmit in pick display name 2024-07-02 14:28:54 +09:30
bemusementpark
508547a013 Defer setting display name until necessary in create flow in onboarding 2024-07-02 13:41:01 +09:30
bemusementpark
9cf3a37a2b Handle backpresses in onboarding 2024-07-02 09:25:19 +09:30
Fanchao Liu
0da949c8e6
[SES-1966] Attachment batch download and tidy-up (#1507)
* Attachment batch download

* Addressed feedback and test issues

* Feedback fixes

* timedWindow for flow

* Feedback

* Dispatchers

* Remove `flowOn`

* New implementation of timedBuffer

* Organise import

* Feedback

* Fix test

* Tidied up logic around `eligibleForDownload`

* Updated comment

---------

Co-authored-by: fanchao <git@fanchao.dev>
2024-07-01 17:36:50 +10:00
Fanchao Liu
fec67e282a
[SES-2018] Refactor mention (#1510)
* Refactor mention

* Fixes robolectric test problem

* Fixes tests

* Naming and comments

* Naming

* Dispatcher

---------

Co-authored-by: fanchao <git@fanchao.dev>
2024-07-01 17:31:03 +10:00
bemusementpark
d621036af6 Rename LoadAccountViewModel 2024-07-01 16:38:35 +09:30
ceokot
a260717d42
Highlight @You mentions (#985)
* Highlight @You mentions

* fix: resolve merge conflicts

* Setting the proper design rules for mentions

* New RoundedBackgroundSpan, applied to "you"  mentions

The rounded background highlighter can take padding, so there is no need to add those extra spaces at the start and end.

* Better mention highlight logic

Some mention highlight should only format the text and not apply any styling.
Also making sure we cater for all cases properly

* Updated the text color logic based on design rules

* Fine tuning the color rules

* Removing usage of Resources.getSystem()

Only making the db call if there actually is a mention

* Moving color definition outside the loop to avoid repetitions

---------

Co-authored-by: charles <charles@oxen.io>
Co-authored-by: 0x330a <92654767+0x330a@users.noreply.github.com>
Co-authored-by: ThomasSession <thomas.r@getsession.org>
2024-07-01 14:52:18 +10:00
bemusementpark
1f7a1c7e0d Fix copy mnemonic 2024-07-01 11:26:27 +09:30
bemusementpark
aac228ba91 Remove unused button 2024-07-01 11:25:36 +09:30
Andrew
1d80bb0ba9
[SES-337] Add rounded corners to thumbnail in QuoteView (#1285)
* Add rounded corners to thumbnail in QuoteView

* Simplify ThumbnailView

* Cleanup ThumbnailView

* Removed include custom attributes

The custom attributes are not passed to the view.
I added the radius programatically instead.

* Clipping whole thumbnail view instead of just the image requests

---------

Co-authored-by: AL-Session <160798022+AL-Session@users.noreply.github.com>
Co-authored-by: ThomasSession <thomas.r@getsession.org>
2024-07-01 09:41:46 +10:00
Andrew
0ebbd35031 Fix path indicator on SettingsActivity 2024-06-28 18:43:00 +09:30
Andrew
8cc7e65abf Fix empty recovery password error 2024-06-28 18:33:07 +09:30
Andrew
eb63af2f8d SES-2259 Remove 35 char display name char limit 2024-06-28 14:05:40 +09:30
Andrew
e3685f65f8 Fix display name length 2024-06-28 13:57:49 +09:30
Andrew
ad2bf6e344 Fix shield position in Load Account 2024-06-28 13:39:47 +09:30
Andrew
3cc00caeab Check recovery password is hex if its not a mnemonic 2024-06-28 12:43:40 +09:30
Andrew
17fbe5403c Remove open url modal in New Message Bottom Sheet 2024-06-28 11:21:38 +09:30
Andrew
5cd2cf5cb5
Merge pull request #1527 from bemusementpark/update-libsession
Update libsession
2024-06-28 09:31:58 +09:30
Andrew
1cd7a57515 Ignore extra spaces and special characters in Recovery Password entry 2024-06-27 21:45:13 +09:30
Andrew
2dbdd6b0ae Update libsession 2024-06-27 17:07:45 +09:30
Andrew
750dfb455d Fix cursor error color 2024-06-27 14:53:37 +09:30
Andrew
a8082494ba Restore next button position for Android 2024-06-27 12:41:01 +09:30
Andrew
f4cb0b8e6d Update errors 2024-06-27 12:40:24 +09:30
Andrew
4aa0e55dc6 Hide next button when empty in new message 2024-06-27 11:41:32 +09:30
Andrew
b775b5aca9 Reuse getSearchName 2024-06-27 10:21:37 +09:30
Fanchao Liu
0f47076192
[SES-2162] - Remove wrapping of config message (#1517)
* Remove wrapping of config message

* Addresses feedback

* Merged in ThreadUtils fix

* JDK installation

* Revert JDK change

---------

Co-authored-by: fanchao <git@fanchao.dev>
2024-06-27 10:12:54 +10:00