Private
Public Access
1
0

Switch from Entry to TextView for multiline, paste support for attachments

This commit is contained in:
2025-06-12 20:35:56 -07:00
parent 137da5b3d1
commit 6fb88c3a0d
7 changed files with 179 additions and 22 deletions

View File

@@ -104,9 +104,11 @@ private class TranscriptDrawingArea : Widget
}
// Text Bubble
var text_bubble = new TextBubbleLayout(message, this, max_width);
text_bubble.vertical_padding = (last_sender == message.sender) ? 0.0f : 10.0f;
items.add(text_bubble);
if (message.text.length > 0 && !message.is_attachment_marker) {
var text_bubble = new TextBubbleLayout(message, this, max_width);
text_bubble.vertical_padding = (last_sender == message.sender) ? 0.0f : 10.0f;
items.add(text_bubble);
}
// Check for attachments. For each one, add an image layout bubble
foreach (var attachment in message.attachments) {