mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
show correct image borders for 'forwarded messages' on sender site
This commit is contained in:
@@ -190,8 +190,8 @@ public class ConversationItem extends LinearLayout
|
||||
setGroupMessageStatus();
|
||||
setAuthor(messageRecord, groupThread);
|
||||
setQuote(messageRecord, groupThread);
|
||||
setMessageSpacing(context, messageRecord, groupThread);
|
||||
setFooter(messageRecord, locale, groupThread);
|
||||
setMessageSpacing(context);
|
||||
setFooter(messageRecord, locale);
|
||||
}
|
||||
|
||||
|
||||
@@ -473,12 +473,9 @@ public class ConversationItem extends LinearLayout
|
||||
bottomRight = 0;
|
||||
}
|
||||
|
||||
if (!current.isOutgoing() && isGroupThread) {
|
||||
topLeft = 0;
|
||||
topRight = 0;
|
||||
}
|
||||
|
||||
if (hasQuote(messageRecord)) {
|
||||
if ((!current.isOutgoing() && isGroupThread)
|
||||
|| current.isForwarded()
|
||||
|| hasQuote(messageRecord)){
|
||||
topLeft = 0;
|
||||
topRight = 0;
|
||||
}
|
||||
@@ -574,7 +571,7 @@ public class ConversationItem extends LinearLayout
|
||||
}
|
||||
}
|
||||
|
||||
private void setFooter(@NonNull DcMsg current, @NonNull Locale locale, boolean isGroupThread) {
|
||||
private void setFooter(@NonNull DcMsg current, @NonNull Locale locale) {
|
||||
ViewUtil.updateLayoutParams(footer, LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
|
||||
|
||||
footer.setVisibility(GONE);
|
||||
@@ -651,7 +648,7 @@ public class ConversationItem extends LinearLayout
|
||||
bodyBubble.setBackgroundResource(background);
|
||||
}
|
||||
|
||||
private void setMessageSpacing(@NonNull Context context, @NonNull DcMsg current, boolean isGroupThread) {
|
||||
private void setMessageSpacing(@NonNull Context context) {
|
||||
int spacingTop = readDimen(context, R.dimen.conversation_vertical_message_spacing_collapse);
|
||||
int spacingBottom = spacingTop;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user