Fix drafts not loading in bubbled conversations.

fork-5.53.8
Cody Henthorne 2022-08-12 11:39:02 -04:00
rodzic 41a7560e76
commit a444a96dc9
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -85,7 +85,7 @@ public class ConversationIntents {
return bundle;
}
private static boolean isBubbleIntentUri(@Nullable Uri uri) {
static boolean isBubbleIntentUri(@Nullable Uri uri) {
return uri != null && Objects.equals(uri.getAuthority(), BUBBLE_AUTHORITY);
}

Wyświetl plik

@ -1659,7 +1659,7 @@ public class ConversationParentFragment extends Fragment
return setMedia(draftMedia, draftMediaType);
}
if (draftText == null && draftMedia == null && draftMediaType == null) {
if (draftText == null && (draftMedia == null || ConversationIntents.isBubbleIntentUri(draftMedia)) && draftMediaType == null) {
Log.d(TAG, "Initializing draft from database");
return initializeDraftFromDatabase();
} else {