Skip to content

Commit a5b798d

Browse files
committed
Always use the composed timestamps for conversation lastactivetimestamp updates like the official clients
fixes #104
1 parent ee7bea9 commit a5b798d

File tree

1 file changed

+1
-5
lines changed
  • Signal-Windows.Lib/Storage

1 file changed

+1
-5
lines changed

Signal-Windows.Lib/Storage/DB.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -774,15 +774,11 @@ private static SignalConversation SaveMessage(SignalDBContext ctx, SignalMessage
774774
message.Status = SignalMessageStatus.Received;
775775
}
776776
}
777+
timestamp = message.ComposedTimestamp;
777778
if (message.Author != null)
778779
{
779-
timestamp = message.ReceivedTimestamp;
780780
message.Author = ctx.Contacts.Where(a => a.Id == message.Author.Id).Single();
781781
}
782-
else
783-
{
784-
timestamp = message.ComposedTimestamp;
785-
}
786782
if (!message.ThreadId.EndsWith("="))
787783
{
788784
conversation = ctx.Contacts

0 commit comments

Comments
 (0)