aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/conversation_selector
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-08-31 22:22:44 +0200
committerfiaxh <git@mx.ax.lt>2017-08-31 23:52:15 +0200
commitd0e86d0a8ebb6bbb254a0fb7474d09c58d8379e3 (patch)
tree7f3d7344f279ee83d5f3a726b85affeabcd57506 /main/src/ui/conversation_selector
parentd2a5287effcf60a44084568a37c9c9091d336178 (diff)
downloaddino-d0e86d0a8ebb6bbb254a0fb7474d09c58d8379e3.tar.gz
dino-d0e86d0a8ebb6bbb254a0fb7474d09c58d8379e3.zip
small fixes
Diffstat (limited to 'main/src/ui/conversation_selector')
-rw-r--r--main/src/ui/conversation_selector/conversation_row.vala4
-rw-r--r--main/src/ui/conversation_selector/list.vala2
2 files changed, 3 insertions, 3 deletions
diff --git a/main/src/ui/conversation_selector/conversation_row.vala b/main/src/ui/conversation_selector/conversation_row.vala
index d9432583..ec00349b 100644
--- a/main/src/ui/conversation_selector/conversation_row.vala
+++ b/main/src/ui/conversation_selector/conversation_row.vala
@@ -56,7 +56,7 @@ public abstract class ConversationRow : ListBoxRow {
Entities.Message? message = stream_interactor.get_module(MessageStorage.IDENTITY).get_last_message(conversation);
if (message != null) {
update_message(message.body.replace("\n", " "));
- update_time(message.time.to_utc());
+ update_time(message.time);
}
}
@@ -89,7 +89,7 @@ public abstract class ConversationRow : ListBoxRow {
time = new_time;
}
if (time != null) {
- time_label.label = get_relative_time(time);
+ time_label.label = get_relative_time(time.to_local());
}
}
diff --git a/main/src/ui/conversation_selector/list.vala b/main/src/ui/conversation_selector/list.vala
index 0e0ce554..c46376ed 100644
--- a/main/src/ui/conversation_selector/list.vala
+++ b/main/src/ui/conversation_selector/list.vala
@@ -206,4 +206,4 @@ public class List : ListBox {
}
}
-} \ No newline at end of file
+}