File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed
src/main/java/org/thoughtcrime/securesms Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ configurations.configureEach {
2626 exclude(module = " commons-logging" )
2727}
2828
29- val canonicalVersionCode = 424
29+ val canonicalVersionCode = 426
3030val canonicalVersionName = " 1.28.1"
3131
3232val postFixSize = 10
Original file line number Diff line number Diff line change @@ -191,7 +191,11 @@ class AvatarUploadManager @Inject constructor(
191191 val result = it.userProfile.getPic()
192192 val userPic = remoteFile.toUserPic()
193193 if (isReupload) {
194- it.userProfile.setReuploadedPic(userPic)
194+ it.userProfile.setPic(userPic)
195+
196+ // TODO: We'll need to call this when the libsession re-enables the re-uploaded
197+ // avatar logic.
198+ // it.userProfile.setReuploadedPic(userPic)
195199 } else {
196200 it.userProfile.setPic(userPic)
197201 }
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import kotlinx.coroutines.flow.filterNotNull
1313import kotlinx.coroutines.flow.first
1414import kotlinx.coroutines.flow.flatMapLatest
1515import kotlinx.coroutines.flow.map
16- import kotlinx.coroutines.flow.mapLatest
1716import kotlinx.coroutines.flow.merge
1817import kotlinx.coroutines.flow.onStart
1918import kotlinx.coroutines.flow.stateIn
@@ -226,12 +225,13 @@ class DefaultConversationRepository @Inject constructor(
226225 it == TextSecurePreferences .SET_FORCE_POST_PRO
227226 }
228227 ).debounce(500 )
229- .onStart { emit(Unit ) }
230- .mapLatest {
231- withContext(Dispatchers .Default ) {
232- threadDb.getThreads(allAddresses)
233- }
234- }
228+ .onStart { emit(allAddresses) }
229+ .map { allAddresses }
230+ }
231+ .map { addresses ->
232+ withContext(Dispatchers .Default ) {
233+ threadDb.getThreads(addresses)
234+ }
235235 }
236236 }
237237
You can’t perform that action at this time.
0 commit comments