Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
dont use server timestamp for receipt messages
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Oct 18, 2022
1 parent bdb977b commit 02125a9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion groupsv2/groupsv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion textsecure.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

Expand Down

0 comments on commit 02125a9

Please sign in to comment.