From 02125a98e361350deb621e23c85ea408613c0f7c Mon Sep 17 00:00:00 2001 From: "aaron@nanu-c.org" Date: Tue, 18 Oct 2022 21:50:48 +0200 Subject: [PATCH] dont use server timestamp for receipt messages --- groupsv2/groupsv2.go | 5 ++++- textsecure.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/groupsv2/groupsv2.go b/groupsv2/groupsv2.go index 423cfe7..a4f6438 100644 --- a/groupsv2/groupsv2.go +++ b/groupsv2/groupsv2.go @@ -229,7 +229,10 @@ func GetGroupV2MembersForGroup(group string) ([]*signalservice.DecryptedMember, if g == nil { return nil, fmt.Errorf("Group not found") } - g.UpdateGroupFromServer() + err := g.UpdateGroupFromServer() + if err != nil { + log.Debugln("[textsecure] could not update group from server") + } return g.DecryptedGroup.Members, nil } diff --git a/textsecure.go b/textsecure.go index b8c48c2..4a539fd 100644 --- a/textsecure.go +++ b/textsecure.go @@ -461,7 +461,7 @@ func registerDevice() error { func handleReceipt(env *signalservice.Envelope) { if client.ReceiptHandler != nil { - client.ReceiptHandler(env.GetSourceUuid(), env.GetSourceDevice(), env.GetServerTimestamp()) + client.ReceiptHandler(env.GetSourceUuid(), env.GetSourceDevice(), env.GetTimestamp()) } }