Skip to content

Commit d8be1dd

Browse files
committed
Fix attachments and improve adding unknown contact
- Fix uploading and downloading attachments - Adding an unknown number will first check if that number has registered with Signal
1 parent 8a48073 commit d8be1dd

39 files changed

+884
-178
lines changed

Signal-Windows.Lib/IncomingMessages.cs

Lines changed: 53 additions & 38 deletions
Large diffs are not rendered by default.

Signal-Windows.Lib/Migrations/LibsignalDB/20210311062557_m2.Designer.cs

Lines changed: 115 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using Microsoft.EntityFrameworkCore.Migrations;
4+
5+
namespace Signal_Windows.Migrations.LibsignalDB
6+
{
7+
public partial class m2 : Migration
8+
{
9+
protected override void Up(MigrationBuilder migrationBuilder)
10+
{
11+
migrationBuilder.AddColumn<Guid>(
12+
name: "OwnGuid",
13+
table: "Store",
14+
nullable: true);
15+
}
16+
17+
protected override void Down(MigrationBuilder migrationBuilder)
18+
{
19+
migrationBuilder.DropColumn(
20+
name: "OwnGuid",
21+
table: "Store");
22+
}
23+
}
24+
}

Signal-Windows.Lib/Migrations/LibsignalDB/LibsignalDBContextModelSnapshot.cs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
using Microsoft.EntityFrameworkCore;
1+
using System;
2+
using Microsoft.EntityFrameworkCore;
23
using Microsoft.EntityFrameworkCore.Infrastructure;
4+
using Microsoft.EntityFrameworkCore.Metadata;
5+
using Microsoft.EntityFrameworkCore.Migrations;
36
using Signal_Windows.Storage;
7+
using Signal_Windows.Models;
48

59
namespace Signal_Windows.Migrations.LibsignalDB
610
{
@@ -10,11 +14,11 @@ partial class LibsignalDBContextModelSnapshot : ModelSnapshot
1014
protected override void BuildModel(ModelBuilder modelBuilder)
1115
{
1216
modelBuilder
13-
.HasAnnotation("ProductVersion", "1.1.2");
17+
.HasAnnotation("ProductVersion", "1.1.5");
1418

1519
modelBuilder.Entity("Signal_Windows.Models.SignalIdentity", b =>
1620
{
17-
b.Property<ulong>("Id")
21+
b.Property<long>("Id")
1822
.ValueGeneratedOnAdd();
1923

2024
b.Property<string>("IdentityKey");
@@ -32,7 +36,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
3236

3337
modelBuilder.Entity("Signal_Windows.Models.SignalPreKey", b =>
3438
{
35-
b.Property<ulong>("Id")
39+
b.Property<long>("Id")
3640
.ValueGeneratedOnAdd();
3741

3842
b.Property<string>("Key");
@@ -46,7 +50,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
4650

4751
modelBuilder.Entity("Signal_Windows.Models.SignalSession", b =>
4852
{
49-
b.Property<ulong>("Id")
53+
b.Property<long>("Id")
5054
.ValueGeneratedOnAdd();
5155

5256
b.Property<uint>("DeviceId");
@@ -66,7 +70,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
6670

6771
modelBuilder.Entity("Signal_Windows.Models.SignalSignedPreKey", b =>
6872
{
69-
b.Property<ulong>("Id")
73+
b.Property<long>("Id")
7074
.ValueGeneratedOnAdd();
7175

7276
b.Property<string>("Key");
@@ -78,7 +82,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
7882

7983
modelBuilder.Entity("Signal_Windows.Models.SignalStore", b =>
8084
{
81-
b.Property<ulong>("Id")
85+
b.Property<long>("Id")
8286
.ValueGeneratedOnAdd();
8387

8488
b.Property<uint>("DeviceId");
@@ -87,6 +91,8 @@ protected override void BuildModel(ModelBuilder modelBuilder)
8791

8892
b.Property<uint>("NextSignedPreKeyId");
8993

94+
b.Property<Guid?>("OwnGuid");
95+
9096
b.Property<string>("Password");
9197

9298
b.Property<uint>("PreKeyIdOffset");
@@ -105,4 +111,4 @@ protected override void BuildModel(ModelBuilder modelBuilder)
105111
});
106112
}
107113
}
108-
}
114+
}

0 commit comments

Comments
 (0)