feat: add logs and fix compile issue with a themes.xml entry, add removing profile picture into logic for profile manager

This commit is contained in:
0x330a 2023-05-23 12:07:09 +10:00
parent fb7dcf58ca
commit 4cbf1bc337
3 changed files with 3 additions and 3 deletions

View File

@ -111,7 +111,7 @@ public class RetrieveProfileAvatarJob extends BaseJob {
}
database.setProfileAvatar(recipient, profileAvatar);
} catch (Exception e) {
Log.e("Loki", "Failed to download profile avatar", e);
} finally {
if (downloadDestination != null) downloadDestination.delete();
}

View File

@ -96,6 +96,8 @@ class ProfileManager(private val context: Context, private val configFactory: Co
val key = contact.profilePictureEncryptionKey
if (!url.isNullOrEmpty() && key != null && key.size == 32) {
this.profilePicture = UserPic(url, key)
} else if (url.isNullOrEmpty() && key == null) {
this.profilePicture = UserPic.DEFAULT
}
}
if (contactConfig.needsPush()) {

View File

@ -661,7 +661,6 @@
<item name="colorCellBackground">@color/classic_dark_1</item>
<item name="colorSettingsBackground">@color/classic_dark_1</item>
<item name="colorDividerBackground">@color/classic_dark_3</item>
<item name="colorCellRipple">@color/classic_dark_3</item>
<item name="actionBarPopupTheme">@style/Dark.Popup</item>
<item name="actionBarWidgetTheme">@null</item>
<item name="actionBarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
@ -709,7 +708,6 @@
<item name="input_bar_lock_view_background">@color/classic_dark_2</item>
<item name="input_bar_lock_view_border">@color/classic_dark_3</item>
<item name="mention_candidates_view_background">@color/classic_dark_2</item>
<item name="mention_candidates_view_background_ripple">@color/classic_dark_3</item>
<item name="scroll_to_bottom_button_background">@color/classic_dark_1</item>
<item name="scroll_to_bottom_button_border">@color/classic_dark_3</item>
<item name="conversation_unread_count_indicator_background">@color/classic_dark_4</item>