mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 10:51:27 +01:00
Add rendering and handling for various disabled input states in CFv2.
This commit is contained in:
@@ -88,7 +88,7 @@ public final class LiveRecipient {
|
||||
* @return An rx-flavored {@link Observable}.
|
||||
*/
|
||||
public @NonNull Observable<Recipient> observable() {
|
||||
return subject.distinctUntilChanged(Recipient::hasSameContent);
|
||||
return subject;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -155,17 +155,7 @@ public class Recipient {
|
||||
@AnyThread
|
||||
public static @NonNull Observable<Recipient> observable(@NonNull RecipientId id) {
|
||||
Preconditions.checkNotNull(id, "ID cannot be null");
|
||||
return Observable.<Recipient>create(emitter -> {
|
||||
LiveRecipient live = live(id);
|
||||
emitter.onNext(live.resolve());
|
||||
|
||||
RecipientForeverObserver observer = emitter::onNext;
|
||||
|
||||
live.observeForever(observer);
|
||||
emitter.setCancellable(() -> {
|
||||
live.removeForeverObserver(observer);
|
||||
});
|
||||
}).subscribeOn(Schedulers.io());
|
||||
return live(id).observable().subscribeOn(Schedulers.io());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1355,6 +1345,7 @@ public class Recipient {
|
||||
Objects.equals(extras, other.extras) &&
|
||||
hasGroupsInCommon == other.hasGroupsInCommon &&
|
||||
Objects.equals(badges, other.badges) &&
|
||||
isActiveGroup == other.isActiveGroup &&
|
||||
Objects.equals(callLinkRoomId, other.callLinkRoomId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user