diff options
author | bobufa <bobufa@users.noreply.github.com> | 2018-06-23 11:57:39 +0200 |
---|---|---|
committer | bobufa <bobufa@users.noreply.github.com> | 2018-08-13 22:05:04 +0200 |
commit | 443e7ee49da305a9ae8052c5b7a73412d03ce75f (patch) | |
tree | faa80dfb7d4a1a7bb05f16ce1c613a7b2e5e2fc5 /libdino/src | |
parent | 3ea00446fb5893804243f5b1a1aa89817b7bc19a (diff) | |
download | dino-443e7ee49da305a9ae8052c5b7a73412d03ce75f.tar.gz dino-443e7ee49da305a9ae8052c5b7a73412d03ce75f.zip |
fix local_time field of message and file_transfer being loaded from time db column
Diffstat (limited to 'libdino/src')
-rw-r--r-- | libdino/src/entity/file_transfer.vala | 2 | ||||
-rw-r--r-- | libdino/src/entity/message.vala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libdino/src/entity/file_transfer.vala b/libdino/src/entity/file_transfer.vala index 93ba782f..be472796 100644 --- a/libdino/src/entity/file_transfer.vala +++ b/libdino/src/entity/file_transfer.vala @@ -77,7 +77,7 @@ public class FileTransfer : Object { } direction = row[db.file_transfer.direction]; time = new DateTime.from_unix_utc(row[db.file_transfer.time]); - local_time = new DateTime.from_unix_utc(row[db.file_transfer.time]); + local_time = new DateTime.from_unix_utc(row[db.file_transfer.local_time]); encryption = (Encryption) row[db.file_transfer.encryption]; file_name = row[db.file_transfer.file_name]; path = row[db.file_transfer.path]; diff --git a/libdino/src/entity/message.vala b/libdino/src/entity/message.vala index 6e34e458..ac54a7c2 100644 --- a/libdino/src/entity/message.vala +++ b/libdino/src/entity/message.vala @@ -82,7 +82,7 @@ public class Message : Object { } direction = row[db.message.direction]; time = new DateTime.from_unix_utc(row[db.message.time]); - local_time = new DateTime.from_unix_utc(row[db.message.time]); + local_time = new DateTime.from_unix_utc(row[db.message.local_time]); body = row[db.message.body]; marked = (Message.Marked) row[db.message.marked]; encryption = (Encryption) row[db.message.encryption]; |