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

Prepare for release 1.21.0 #868

Merged
merged 154 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
154 commits
Select commit Hold shift + click to select a range
b824277
[Automated] Update translations from Crowdin
stfsession Nov 25, 2024
50b3bd6
Merge pull request #810 from session-foundation/release/1.20.7
SessionHero01 Nov 26, 2024
69a9567
Merge pull request #811 from session-foundation/feature/update-crowdi…
SessionHero01 Nov 26, 2024
1ed2268
[Automated] Update translations from Crowdin
Bilb Nov 26, 2024
d59a9e8
Merge pull request #812 from session-foundation/feature/update-crowdi…
SessionHero01 Nov 27, 2024
819b6e1
New group implementation (#4)
SessionHero01 Nov 27, 2024
bd2cbeb
Use consolidated member state and add pending removal support (#813)
SessionHero01 Nov 28, 2024
07bb5d7
Infinite group sync issue (#814)
SessionHero01 Nov 28, 2024
18efb1b
Add missing implementation to delete member's message on swarm (#815)
SessionHero01 Nov 28, 2024
41f57ae
Fix/ses 2919 delete group (#816)
ThomasSession Nov 29, 2024
b961ec4
Fix unit tests (#817)
SessionHero01 Nov 29, 2024
00b332a
Handle config migration (#818)
SessionHero01 Nov 29, 2024
3cc2757
Text size changes from discord + consistency fixes (#821)
ThomasSession Dec 1, 2024
0fbc89e
SES-3001 - Note to self vs 1on1 delete (#823)
ThomasSession Dec 2, 2024
9d3764d
Should not block wait on promises (#824)
SessionHero01 Dec 2, 2024
1de1a80
Bulk group message deletion (#826)
SessionHero01 Dec 3, 2024
a0a98a4
A thread created locally should not set "date" to current time (#828)
SessionHero01 Dec 3, 2024
eaa9cc9
Fix you not shown (#830)
SessionHero01 Dec 3, 2024
a21d283
Added missing joined_at for groups (#829)
SessionHero01 Dec 3, 2024
f977caa
Fix member not having access to old messages (#831)
SessionHero01 Dec 4, 2024
9a637ec
Make sure attachment messages are marked as deleted instead. And cont…
SessionHero01 Dec 4, 2024
de01ee1
Add lucide license (#833)
SessionHero01 Dec 9, 2024
27bef85
Fix error joining communities (#836)
SessionHero01 Dec 9, 2024
eee3d5e
[SES-3050] - Kicked group message state (#837)
SessionHero01 Dec 9, 2024
ef63bb7
Only delete group invite once approved (#838)
SessionHero01 Dec 10, 2024
e4dbca1
Do not delete link previews or audio message while deleting attachmen…
SessionHero01 Dec 11, 2024
ac4124d
[SES-2968] [SES-2929] - Fix up misc kicked and re-invited message syn…
SessionHero01 Dec 12, 2024
ff12dec
Introducing thread status for groups (#844)
SessionHero01 Dec 12, 2024
a091a33
Also delete group invite from swarm when rejecting invitation (#843)
SessionHero01 Dec 12, 2024
510f186
Clear thread before accepting/rejecting group invitation (#849)
SessionHero01 Dec 13, 2024
e761ff8
Only send group messages after keys obtained (#848)
SessionHero01 Dec 13, 2024
5ce2d03
[SES-2966] - Delete the right attachments (#850)
SessionHero01 Dec 13, 2024
2fed040
[SES-3093] - Fix 1970 timestamp issue (#847)
SessionHero01 Dec 13, 2024
d1db842
Merge remote-tracking branch 'origin/dev' into release/1.20.8
SessionHero01 Dec 16, 2024
cb80fb2
Also delete group invitation whenever an invitation is blocked (#851)
SessionHero01 Dec 16, 2024
725abb4
Fixed compilation issues
SessionHero01 Dec 16, 2024
71b30d8
Merge pull request #841 from session-foundation/release/1.20.8
SessionHero01 Dec 16, 2024
b700be6
SES-2916 - Remove group config when blocked (#852)
SessionHero01 Dec 17, 2024
ac93336
Temporary measure for CI (#853)
SessionHero01 Dec 17, 2024
58fc851
SES-3111 - Improve overall networking bottleneck (#855)
SessionHero01 Dec 18, 2024
26b58e3
[Automated] Update translations from Crowdin (#856)
stfsession Dec 18, 2024
7277114
Use mark_kicked when kicked (#857)
SessionHero01 Dec 18, 2024
c777f06
Do not reuse placeholder drawable (#858)
SessionHero01 Dec 18, 2024
0876f87
[Automated] Update translations from Crowdin (#859)
stfsession Dec 18, 2024
8cc8533
SES-3053 Send only the first 32 bytes of admin key as promotion messa…
SessionHero01 Dec 19, 2024
d001f8f
Merge branch 'groups-rebuild' into release/1.21.0
SessionHero01 Jan 8, 2025
b1167d0
Updated group min banner background color (#872)
SessionHero01 Jan 15, 2025
026f6ef
Fix OpenGroup blocking default dispatcher (#873)
SessionHero01 Jan 15, 2025
d869c76
Delete a group directly if it's already destroyed (#876)
SessionHero01 Jan 15, 2025
6b7afb8
Warning as a dynamic color (#866) (#877)
SessionHero01 Jan 15, 2025
46653d9
Added progress indicator for group editing (#875)
SessionHero01 Jan 15, 2025
c04e455
Integrate the group member status change (#874)
SessionHero01 Jan 15, 2025
388a7a2
Clear group messages whenever it's destroyed (#882)
SessionHero01 Jan 17, 2025
9ba8e11
Add a group scope to limit group work concurrency (#881)
SessionHero01 Jan 17, 2025
03b5b40
[SES-3153] - Fix crash when admin deletes our attachment (#883)
SessionHero01 Jan 17, 2025
eb2f92b
Fix unable to delete mms message (#884)
SessionHero01 Jan 20, 2025
681ac32
Reset last hash on promotion (#885)
SessionHero01 Jan 20, 2025
54f381e
Fix poller unable to start when approving group invite (#888)
SessionHero01 Jan 20, 2025
0663876
[SES-3119] - Unread count not cleared (#887)
SessionHero01 Jan 20, 2025
db4e384
[SES-3183] - Delete existing expiring settings message when receiving…
SessionHero01 Jan 21, 2025
e214868
Fix unable to receive "invite-as-admin" (#892)
SessionHero01 Jan 22, 2025
1b411ec
Update sorting order (#893)
SessionHero01 Jan 23, 2025
139dd2b
[SES-3183] - Do not accept 1-to-1 disappearing messages in a group (#…
SessionHero01 Jan 27, 2025
d1ab9cc
[SES-3222] - Add "you" in the list of mention (#896)
SessionHero01 Jan 28, 2025
7b1a25d
[SES-2960] - Control messages for leaving groups (#898)
SessionHero01 Jan 30, 2025
ab2bc2f
Show "xxx is invited" upon group creation (#899)
SessionHero01 Jan 30, 2025
c9c2ccb
[SES-2930] - Show the correct toast message when invitation fails (#900)
SessionHero01 Jan 30, 2025
bb7d867
Incorrect use of channel (#902)
SessionHero01 Jan 30, 2025
c4eee78
Fix incorrect version of "you were removed" used (#903)
SessionHero01 Jan 30, 2025
ac6bb54
[Automated] Update translations from Crowdin (#862)
stfsession Jan 30, 2025
0dc8aa1
Fix control message issues on leaving group (#904)
SessionHero01 Jan 31, 2025
e5e00c4
Onion paths as a StateFlow (#901)
SessionHero01 Feb 2, 2025
75ccd3d
Add a global state management for internet connectivity (#907)
SessionHero01 Feb 3, 2025
88e9dff
Fixed crash upon launch (#911)
SessionHero01 Feb 3, 2025
f8a6ad0
[SES-3200] - Offline control message improvement (#912)
SessionHero01 Feb 3, 2025
0956d65
Using member names in the control messages wherever possible (#914)
SessionHero01 Feb 3, 2025
cc8ecc4
[Automated] Update translations from Crowdin (#915)
stfsession Feb 4, 2025
6ad806a
[SES-3251] - Legacy group migration - Part I (#916)
SessionHero01 Feb 5, 2025
fc914f2
Showing the admin crown for legacy groups (#923)
ThomasSession Feb 7, 2025
7187b79
[SES-3251] - Add recreate group UI and show/hide thread/message optio…
SessionHero01 Feb 9, 2025
1215d22
Fix a clock drift when the device is in deep sleep (#926)
SessionHero01 Feb 9, 2025
021674b
Update Signature Verification Instructions and Links (#908)
KeeJef Feb 10, 2025
ca7eecc
[SES-3251] - Add additional deprecation state and bring back legacy g…
SessionHero01 Feb 10, 2025
855c985
[Automated] Update translations from Crowdin (#929)
stfsession Feb 10, 2025
68061e1
Fix incorrect deprecated state first time accessing it (#931)
SessionHero01 Feb 10, 2025
9755d25
Make sure to skip handling legacy group messages post deprecation (#932)
SessionHero01 Feb 11, 2025
b73520c
[SES-3270] - Group invitation tweaks (#933)
SessionHero01 Feb 11, 2025
e190c33
Send control message locally (#937)
SessionHero01 Feb 12, 2025
47843ad
Rekey always to be performed regardless of sharing history or not (#938)
SessionHero01 Feb 12, 2025
2ebe469
Fix group member name not showing (#939)
SessionHero01 Feb 12, 2025
17fcd5e
Bump release version code
SessionHero01 Feb 12, 2025
1b2eb4c
Making sure we get all attachments except voice notes (#940)
ThomasSession Feb 12, 2025
8d8876d
[SES-3300] - More place to hide message/convo actions based on deprec…
SessionHero01 Feb 13, 2025
42a536f
Add the ability to re-create legacy group for unknown members (#944)
SessionHero01 Feb 13, 2025
1cb39c9
QA fixes for Groups V2 (#946)
ThomasSession Feb 13, 2025
87cd979
[SES-3314] - Prevent replay attacks (#945)
SessionHero01 Feb 14, 2025
79858a2
Relying on the flag for voice notes and ignoring empty file names as …
ThomasSession Feb 16, 2025
1be1278
[SES-3319] - No promotion retry in the background (#948)
SessionHero01 Feb 17, 2025
2a7b08f
Fix/ses 3326 unpin legacy groups (#949)
ThomasSession Feb 17, 2025
fb0dc85
Proper names for visible message view
ThomasSession Feb 17, 2025
f3b8dd5
Do not send control message for re-invite/re-promote (#951)
SessionHero01 Feb 17, 2025
f5a76b2
Disable selecting message for post deprecated legacy groups (#950)
SessionHero01 Feb 17, 2025
c35930c
SES-3317 invalid phrase key for dual promotion
ThomasSession Feb 17, 2025
947bae2
SES-3258
ThomasSession Feb 17, 2025
57a3c06
Updated time format for deprecated time (#954)
SessionHero01 Feb 17, 2025
a5ad390
Making sure the unblock banner shows the dialog first (#955)
ThomasSession Feb 17, 2025
657e3e2
Update user config whenever group name changes (#956)
SessionHero01 Feb 18, 2025
b57097f
[SES-3352] - Create group as a rollback-able process (#958)
SessionHero01 Feb 18, 2025
b3623f2
[Automated] Update translations from Crowdin (#960)
stfsession Feb 19, 2025
097dc27
[SES-2970] - Add expired groups handling (#962)
SessionHero01 Feb 19, 2025
b412bf1
SES-3367 - properly allowing for user name edit in groups (#963)
ThomasSession Feb 20, 2025
0831c66
Changes to use load_admin_key (#964)
SessionHero01 Feb 20, 2025
df977ad
Fix compile issue (#965)
SessionHero01 Feb 20, 2025
1106474
Disabled the onion request (and libQuic) code in libSession
mpretty-cyro Feb 21, 2025
ad7792f
Rework group poller lifecycle so that it supports polling once (#967)
SessionHero01 Feb 24, 2025
01b1d26
Subscribe to group config messages (#969)
SessionHero01 Feb 24, 2025
de73cdc
[Automated] Update translations from Crowdin (#966)
stfsession Feb 24, 2025
d455f65
Update to libSession 1.2.0
mpretty-cyro Feb 24, 2025
72a57cd
Merge pull request #968 from mpretty-cyro/feature/libQuic-fixes
mpretty-cyro Feb 24, 2025
2814e35
Fixes crash on unexpected key messages (#972)
SessionHero01 Feb 24, 2025
a1fd6cc
Avatar reupload config update (#971)
ThomasSession Feb 24, 2025
45e1f67
[SES-3395] - Fix group notification issue (#973)
SessionHero01 Feb 24, 2025
d5e1082
Key was changed again in crowdin (#974)
ThomasSession Feb 24, 2025
02da896
Bump version code and legacy group deprecated dates for internal test…
SessionHero01 Feb 24, 2025
4d4a48b
Bump version code to 394
SessionHero01 Feb 25, 2025
0e62a2f
[SES-3115] - Missing "xxx NOT SENT" status text (#975)
SessionHero01 Feb 25, 2025
652bc64
Make sure we don't set our own profile pic from group messages (#981)
SessionHero01 Feb 26, 2025
13c638f
Making sure we don't delete a NTS on restore (#982)
ThomasSession Feb 26, 2025
d7f6975
Remove three dot menu for kicked group (#984)
SessionHero01 Feb 26, 2025
11a0ee9
Fix/groupsv2 fixes (#985)
ThomasSession Feb 27, 2025
737cffc
Make sure group keys are pushed before anything else (#987)
SessionHero01 Feb 27, 2025
119a3e7
Make sure everyone can see resend invite option (#988)
SessionHero01 Feb 27, 2025
b44ea31
[SES-3434] - Fix receiving left groups' notification (#986)
SessionHero01 Feb 27, 2025
32d5bfb
Fix job queue issue resuming message send job (#990)
SessionHero01 Feb 27, 2025
bcabdc4
Fix/groupsv2 fixes (#989)
ThomasSession Feb 27, 2025
bd90383
Disable three dot menu for kicked groups too (#993)
SessionHero01 Feb 27, 2025
b7ab2c5
Group poller tweaks (#995)
SessionHero01 Mar 3, 2025
3a339b1
Added code to output libSession logs
mpretty-cyro Mar 3, 2025
c3c903c
Polling node rotation (#996)
ThomasSession Mar 3, 2025
fbd1975
Removed unnecessary header file
mpretty-cyro Mar 4, 2025
83e9f8e
Merge pull request #997 from mpretty-cyro/feature/libsession-logging
mpretty-cyro Mar 4, 2025
73db78a
Enable libsession login (#999)
SessionHero01 Mar 5, 2025
cc06a4c
Update libsession-util to v1.2.1
SessionHero01 Mar 5, 2025
24ecc84
Bump version code to 395
SessionHero01 Mar 5, 2025
703136e
Merge pull request #1000 from session-foundation/merge-libsession
SessionHero01 Mar 5, 2025
8e1ca75
Fixing logs sharing crashing
ThomasSession Mar 5, 2025
3b9cfd9
Merge pull request #1002 from session-foundation/fix/logs-crashing-em…
ThomasSession Mar 5, 2025
c5912c3
Fix falsely reported internet connectivity
SessionHero01 Mar 6, 2025
84d775c
Merge remote-tracking branch 'origin/release/1.21.0' into release/1.21.0
SessionHero01 Mar 6, 2025
54ec9e5
Renamed
SessionHero01 Mar 6, 2025
37fa8e4
Update to what counts as connected
SessionHero01 Mar 6, 2025
c55840a
Logs
SessionHero01 Mar 6, 2025
19a435b
Merge pull request #1005 from session-foundation/network-connectivity
SessionHero01 Mar 6, 2025
3bdba53
Increase build version and updated deprecation dates (#1008)
SessionHero01 Mar 7, 2025
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
Prev Previous commit
Next Next commit
SES-3111 - Improve overall networking bottleneck (#855)
  • Loading branch information
SessionHero01 authored Dec 18, 2024
commit 58fc851eaed7ac14885cc2a584fca2750496540c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ package org.thoughtcrime.securesms.dependencies
import android.content.Context
import dagger.Lazy
import dagger.hilt.android.qualifiers.ApplicationContext
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.channels.BufferOverflow
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.launch
import network.loki.messenger.libsession_util.ConfigBase
import network.loki.messenger.libsession_util.Contacts
import network.loki.messenger.libsession_util.ConversationVolatileConfig
Expand Down Expand Up @@ -87,10 +90,9 @@ class ConfigFactory @Inject constructor(
private val userConfigs = HashMap<AccountId, Pair<ReentrantReadWriteLock, UserConfigsImpl>>()
private val groupConfigs = HashMap<AccountId, Pair<ReentrantReadWriteLock, GroupConfigsImpl>>()

private val _configUpdateNotifications = MutableSharedFlow<ConfigUpdateNotification>(
extraBufferCapacity = 100, // The notifications are normally important so we can afford to buffer a few
onBufferOverflow = BufferOverflow.SUSPEND
)
private val coroutineScope: CoroutineScope = GlobalScope

private val _configUpdateNotifications = MutableSharedFlow<ConfigUpdateNotification>()
override val configUpdateNotifications get() = _configUpdateNotifications

private fun requiresCurrentUserAccountId(): AccountId =
Expand Down Expand Up @@ -152,9 +154,11 @@ class ConfigFactory @Inject constructor(
}

if (changed.isNotEmpty()) {
for (notification in changed) {
if (!_configUpdateNotifications.tryEmit(notification)) {
Log.e("ConfigFactory", "Unable to deliver config update notification")
coroutineScope.launch {
for (notification in changed) {
// Config change notifications are important so we must use suspend version of
// emit (not tryEmit)
_configUpdateNotifications.emit(notification)
}
}
}
Expand Down Expand Up @@ -247,8 +251,10 @@ class ConfigFactory @Inject constructor(
}

if (changed) {
if (!_configUpdateNotifications.tryEmit(ConfigUpdateNotification.GroupConfigsUpdated(groupId))) {
Log.e("ConfigFactory", "Unable to deliver group update notification")
coroutineScope.launch {
// Config change notifications are important so we must use suspend version of
// emit (not tryEmit)
_configUpdateNotifications.emit(ConfigUpdateNotification.GroupConfigsUpdated(groupId))
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.session.libsession.snode

import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import nl.komponents.kovenant.Deferred
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ object HTTP {
}

@Suppress("OPT_IN_USAGE")
private val httpCallDispatcher = Dispatchers.IO.limitedParallelism(3)
private val httpCallDispatcher = Dispatchers.IO.limitedParallelism(15)

private suspend fun Call.await(): Response {
return withContext(httpCallDispatcher) {
Expand Down