mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 19:56:02 +01:00
Fix bug where wallpaper didn't update after changing.
This commit is contained in:
committed by
Cody Henthorne
parent
0359f27cd9
commit
604f6709db
@@ -187,9 +187,11 @@ public class ConversationViewModel extends ViewModel {
|
||||
.observeOn(Schedulers.io())
|
||||
.withLatestFrom(conversationMetadata, (messages, metadata) -> new MessageData(metadata, messages));
|
||||
|
||||
Observable<Recipient> liveRecipient = recipientId.distinctUntilChanged().switchMap(id -> Recipient.live(id).asObservable());
|
||||
|
||||
canShowAsBubble = threadId.observeOn(Schedulers.io()).map(conversationRepository::canShowAsBubble);
|
||||
wallpaper = recipientCache.map(r -> Optional.ofNullable(r.getWallpaper())).distinctUntilChanged();
|
||||
chatColors = recipientCache.map(Recipient::getChatColors).distinctUntilChanged();
|
||||
wallpaper = liveRecipient.map(r -> Optional.ofNullable(r.getWallpaper())).distinctUntilChanged();
|
||||
chatColors = liveRecipient.map(Recipient::getChatColors).distinctUntilChanged();
|
||||
|
||||
threadAnimationStateStore.update(threadId, (id, state) -> {
|
||||
if (state.getThreadId() == id) {
|
||||
|
||||
Reference in New Issue
Block a user