mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Convert Recipient to kotlin.
This commit is contained in:
@@ -88,9 +88,9 @@ class ChatWallpaperRepository {
|
||||
if (recipientId != null) {
|
||||
EXECUTOR.execute(() -> {
|
||||
Recipient recipient = Recipient.resolved(recipientId);
|
||||
if (recipient.hasOwnWallpaper()) {
|
||||
if (recipient.getHasOwnWallpaper()) {
|
||||
SignalDatabase.recipients().setDimWallpaperInDarkTheme(recipientId, dimInDarkTheme);
|
||||
} else if (recipient.hasWallpaper()) {
|
||||
} else if (recipient.getHasWallpaper()) {
|
||||
SignalDatabase.recipients()
|
||||
.setWallpaper(recipientId,
|
||||
ChatWallpaperFactory.updateWithDimming(recipient.getWallpaper(),
|
||||
|
||||
@@ -163,7 +163,7 @@ public class ChatWallpaperViewModel extends ViewModel {
|
||||
|
||||
private boolean hasClearableWallpaper() {
|
||||
return (isGlobal() && SignalStore.wallpaper().hasWallpaperSet()) ||
|
||||
(recipientId != null && Recipient.live(recipientId).get().hasOwnWallpaper());
|
||||
(recipientId != null && Recipient.live(recipientId).get().getHasOwnWallpaper());
|
||||
}
|
||||
|
||||
public void resetAllChatColors() {
|
||||
|
||||
Reference in New Issue
Block a user