Skip to content

Commit ce75302

Browse files
committed
Merge branch 'ShelbyBoss-fix_add_attchment_mobile'
2 parents 3d96c12 + 6a9ef68 commit ce75302

File tree

12 files changed

+490
-68
lines changed

12 files changed

+490
-68
lines changed

Signal-Windows.Lib/Migrations/SignalDB/20210305185855_m7.Designer.cs

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

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Microsoft.EntityFrameworkCore.Metadata;
55
using Microsoft.EntityFrameworkCore.Migrations;
66
using Signal_Windows.Storage;
7+
using Signal_Windows.Models;
78

89
namespace Signal_Windows.Migrations
910
{
@@ -13,7 +14,7 @@ partial class SignalDBContextModelSnapshot : ModelSnapshot
1314
protected override void BuildModel(ModelBuilder modelBuilder)
1415
{
1516
modelBuilder
16-
.HasAnnotation("ProductVersion", "1.1.4");
17+
.HasAnnotation("ProductVersion", "1.1.5");
1718

1819
modelBuilder.Entity("Signal_Windows.Models.GroupMembership", b =>
1920
{
@@ -81,6 +82,8 @@ protected override void BuildModel(ModelBuilder modelBuilder)
8182

8283
b.Property<string>("Draft");
8384

85+
b.Property<string>("DraftFileTokens");
86+
8487
b.Property<uint>("ExpiresInSeconds");
8588

8689
b.Property<long>("LastActiveTimestamp");
@@ -151,7 +154,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
151154

152155
b.Property<int>("Direction");
153156

154-
b.Property<uint>("ExpiresAt");
157+
b.Property<long>("ExpiresAt");
155158

156159
b.Property<bool>("Read");
157160

Signal-Windows.Lib/Models/SignalConversation.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public abstract class SignalConversation
1111
public string ThreadDisplayName { get; set; }
1212
public long LastActiveTimestamp { get; set; }
1313
public string Draft { get; set; }
14+
public string DraftFileTokens { get; set; } // comma seperated list of tokens
1415
public string AvatarFile { get; set; }
1516
public long MessagesCount { get; set; }
1617
public uint UnreadCount { get; set; }

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@
106106
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
107107
</PropertyGroup>
108108
<ItemGroup>
109+
<Compile Include="Migrations\SignalDB\20210305185855_m7.cs" />
110+
<Compile Include="Migrations\SignalDB\20210305185855_m7.designer.cs">
111+
<DependentUpon>20210305185855_m7.cs</DependentUpon>
112+
</Compile>
109113
<Compile Include="Settings\AppConfig.cs" />
110114
<Compile Include="DisappearingMessagesManager.cs" />
111115
<Compile Include="Events\SignalMessageEventArgs.cs" />

0 commit comments

Comments
 (0)