Skip to content

Commit a5d0c7b

Browse files
golf1052Trolldemorted
authored andcommitted
disable automatic downloading, download on explicit click
1 parent 8211272 commit a5d0c7b

File tree

11 files changed

+469
-146
lines changed

11 files changed

+469
-146
lines changed

Signal-Windows.Lib/Migrations/SignalDB/20180211071131_m5.Designer.cs

Lines changed: 258 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
6+
{
7+
public partial class m5 : Migration
8+
{
9+
protected override void Up(MigrationBuilder migrationBuilder)
10+
{
11+
migrationBuilder.AddColumn<string>(
12+
name: "Guid",
13+
table: "Attachments",
14+
nullable: true);
15+
}
16+
17+
protected override void Down(MigrationBuilder migrationBuilder)
18+
{
19+
migrationBuilder.DropColumn(
20+
name: "Guid",
21+
table: "Attachments");
22+
}
23+
}
24+
}

Signal-Windows.Lib/Migrations/SignalDB/SignalDBContextModelSnapshot.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ protected override void BuildModel(ModelBuilder modelBuilder)
4545

4646
b.Property<string>("FileName");
4747

48+
b.Property<string>("Guid");
49+
4850
b.Property<byte[]>("Key");
4951

5052
b.Property<long>("MessageId");

Signal-Windows.Lib/Models/SignalAttachment.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class SignalAttachment
1919
public ulong StorageId { get; set; }
2020
public byte[] Digest { get; set; }
2121
public long Size { get; set; }
22+
public string Guid { get; set; }
2223

2324
[NotMapped]
2425
public Image AttachmentImage { get; set; }

Signal-Windows.Lib/Signal-Windows.Lib.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@
130130
<Compile Include="Migrations\SignalDB\20180203062229_m4.designer.cs">
131131
<DependentUpon>20180203062229_m4.cs</DependentUpon>
132132
</Compile>
133+
<Compile Include="Migrations\SignalDB\20180211071131_m5.cs" />
134+
<Compile Include="Migrations\SignalDB\20180211071131_m5.designer.cs">
135+
<DependentUpon>20180211071131_m5.cs</DependentUpon>
136+
</Compile>
133137
<Compile Include="Migrations\SignalDB\SignalDBContextModelSnapshot.cs" />
134138
<Compile Include="Models\PhoneContact.cs" />
135139
<Compile Include="Models\SignalAttachment.cs" />

0 commit comments

Comments
 (0)