aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/entity
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2021-04-01 12:03:04 +0200
committerfiaxh <git@lightrise.org>2021-04-01 12:03:04 +0200
commit3454201e5a3da058ccbef0bbaf467599912a8c38 (patch)
tree6ff60c4d923e468135a86a9e8a5fae926c349b41 /libdino/src/entity
parentb63a20f9189026a77ccc1769a4ab366d48f63233 (diff)
downloaddino-3454201e5a3da058ccbef0bbaf467599912a8c38.tar.gz
dino-3454201e5a3da058ccbef0bbaf467599912a8c38.zip
Use outgoing JMI if contact has supporting device
Diffstat (limited to 'libdino/src/entity')
-rw-r--r--libdino/src/entity/call.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdino/src/entity/call.vala b/libdino/src/entity/call.vala
index b836e2cd..7891dae7 100644
--- a/libdino/src/entity/call.vala
+++ b/libdino/src/entity/call.vala
@@ -77,6 +77,8 @@ namespace Dino.Entities {
.value(db.call.state, State.ENDED); // No point in persisting states that can't survive a restart
if (end_time != null) {
builder.value(db.call.end_time, (long) end_time.to_unix());
+ } else {
+ builder.value(db.call.end_time, (long) local_time.to_unix());
}
id = (int) builder.perform();