aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorAearil <aearil@paranoici.org>2020-02-21 18:22:27 +0100
committerfiaxh <git@lightrise.org>2020-02-21 18:23:36 +0100
commited71f61422ec0cc03427833771fe2a6a7b4b3fa1 (patch)
tree6795360772177c8b45a99939452efe99653b7d39 /main/src
parent78ef31dcf57a1aa16d9b51897501b81116b22ffd (diff)
downloaddino-ed71f61422ec0cc03427833771fe2a6a7b4b3fa1.tar.gz
dino-ed71f61422ec0cc03427833771fe2a6a7b4b3fa1.zip
Add a tooltip when messages are in WONTSEND state (#550)
The warning sign and red color, while obviously synonymous with a problem, are still a bit perplexing for the user. This change add a bit of clarity. It would obviously be better to get exact cause of the problem from the different plugins. Maybe it would be possible to add a field to the Message class from libdino/src/entity/message.vala in order to record an error message for every case.
Diffstat (limited to 'main/src')
-rw-r--r--main/src/ui/conversation_summary/conversation_item_skeleton.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/src/ui/conversation_summary/conversation_item_skeleton.vala b/main/src/ui/conversation_summary/conversation_item_skeleton.vala
index 175e01ff..40816493 100644
--- a/main/src/ui/conversation_summary/conversation_item_skeleton.vala
+++ b/main/src/ui/conversation_summary/conversation_item_skeleton.vala
@@ -150,6 +150,10 @@ public class ItemMetaDataHeader : Box {
Util.force_error_color(received_image);
Util.force_error_color(encryption_image);
Util.force_error_color(time_label);
+ string error_text = _("Unable to send message");
+ received_image.tooltip_text = error_text;
+ encryption_image.tooltip_text = error_text;
+ time_label.tooltip_text = error_text;
return;
} else if (item.mark != Message.Marked.READ) {
all_read = false;