Skip to content

Commit 79bb80d

Browse files
Merge pull request #1584 from session-foundation/release/1.28.1
1.28.1 into dev
2 parents c1140f4 + b97760f commit 79bb80d

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ configurations.configureEach {
2626
exclude(module = "commons-logging")
2727
}
2828

29-
val canonicalVersionCode = 424
29+
val canonicalVersionCode = 426
3030
val canonicalVersionName = "1.28.1"
3131

3232
val postFixSize = 10

app/src/main/java/org/thoughtcrime/securesms/attachments/AvatarUploadManager.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

app/src/main/java/org/thoughtcrime/securesms/repository/ConversationRepository.kt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import kotlinx.coroutines.flow.filterNotNull
1313
import kotlinx.coroutines.flow.first
1414
import kotlinx.coroutines.flow.flatMapLatest
1515
import kotlinx.coroutines.flow.map
16-
import kotlinx.coroutines.flow.mapLatest
1716
import kotlinx.coroutines.flow.merge
1817
import kotlinx.coroutines.flow.onStart
1918
import 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

0 commit comments

Comments
 (0)