Skip to content

Commit 040e251

Browse files
committed
update signal-service to 2.5.10.1, adjust IsTrustedIdentity
1 parent e534864 commit 040e251

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Signal-Windows/Signal/IncomingMessages.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ private void HandleSignalMessage(SignalServiceEnvelope envelope, SignalServiceCo
265265
Status = (uint)SignalAttachmentStatus.Default,
266266
SentFileName = pointer.FileName,
267267
ContentType = "",
268-
Key = pointer.getKey(),
269-
Relay = pointer.getRelay(),
270-
StorageId = pointer.getId()
268+
Key = pointer.Key,
269+
Relay = pointer.Relay,
270+
StorageId = pointer.Id
271271
};
272272
attachments.Add(sa);
273273
}

Signal-Windows/Storage/Store.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ public bool SaveIdentity(SignalProtocolAddress address, IdentityKey identityKey)
2323
return true;
2424
}
2525

26-
public bool IsTrustedIdentity(SignalProtocolAddress address, IdentityKey identityKey)
26+
public bool IsTrustedIdentity(SignalProtocolAddress address, IdentityKey identityKey, Direction direction)
2727
{
28+
if (direction == Direction.RECEIVING)
29+
{
30+
return true;
31+
}
2832
string savedIdentity = LibsignalDBContext.GetIdentityLocked(address.Name);
2933
if (savedIdentity == null)
3034
{

Signal-Windows/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"dependencies": {
3-
"libsignal-service-dotnet": "1.5.6.1",
3+
"libsignal-service-dotnet": "2.5.10.1",
44
"Microsoft.EntityFrameworkCore": "1.1.2",
55
"Microsoft.EntityFrameworkCore.Design": "1.1.2",
66
"Microsoft.EntityFrameworkCore.Sqlite": "1.1.2",

0 commit comments

Comments
 (0)