Skip to content

Commit dc1763e

Browse files
committed
Merge branch 'master' into add-contact-page
2 parents 4f09c9e + 8951066 commit dc1763e

File tree

6 files changed

+8
-16
lines changed

6 files changed

+8
-16
lines changed

Signal-Windows/Controls/Conversation.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ private async void TextBox_KeyDown(object sender, KeyRoutedEventArgs e)
223223

224224
private void ScrollToBottom()
225225
{
226+
if (ConversationItemsControl.Items.Count == 0)
227+
return;
226228
var lastMsg = ConversationItemsControl.Items[ConversationItemsControl.Items.Count - 1] as SignalMessageContainer;
227229
Debug.WriteLine($"scroll to {lastMsg}");
228230
ConversationItemsControl.ScrollIntoView(lastMsg);

Signal-Windows/Signal-Windows.csproj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,6 @@
141141
<Compile Include="App.xaml.cs">
142142
<DependentUpon>App.xaml</DependentUpon>
143143
</Compile>
144-
<Compile Include="Controls\AddContactListElement.xaml.cs">
145-
<DependentUpon>AddContactListElement.xaml</DependentUpon>
146-
</Compile>
147144
<Compile Include="Controls\IdentityKeyChangeMessage.xaml.cs">
148145
<DependentUpon>IdentityKeyChangeMessage.xaml</DependentUpon>
149146
</Compile>
@@ -178,7 +175,6 @@
178175
<DependentUpon>20170825082857_m2.cs</DependentUpon>
179176
</Compile>
180177
<Compile Include="Migrations\SignalDB\SignalDBContextModelSnapshot.cs" />
181-
<Compile Include="Models\PhoneContact.cs" />
182178
<Compile Include="Models\SignalEarlyReceipt.cs" />
183179
<Compile Include="Models\SignalIdentity.cs" />
184180
<Compile Include="Models\SignalAttachment.cs" />
@@ -247,10 +243,6 @@
247243
<Generator>MSBuild:Compile</Generator>
248244
<SubType>Designer</SubType>
249245
</ApplicationDefinition>
250-
<Page Include="Controls\AddContactListElement.xaml">
251-
<SubType>Designer</SubType>
252-
<Generator>MSBuild:Compile</Generator>
253-
</Page>
254246
<Page Include="Controls\IdentityKeyChangeMessage.xaml">
255247
<SubType>Designer</SubType>
256248
<Generator>MSBuild:Compile</Generator>

Signal-Windows/ViewModels/AddContactPageViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public string ContactNumber
4242
get { return _ContactNumber; }
4343
set { _ContactNumber = value; RaisePropertyChanged(nameof(ContactNumber)); }
4444
}
45-
45+
4646
public AddContactPageViewModel()
4747
{
4848
Contacts = new ObservableCollection<PhoneContact>();
@@ -281,4 +281,4 @@ private string ParsePhoneNumber(string number)
281281
return phoneNumberUtil.Format(phoneNumber, PhoneNumberFormat.E164);
282282
}
283283
}
284-
}
284+
}

Signal-Windows/Views/AddContactPage.xaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
xmlns:local="using:Signal_Windows.Views"
66
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8-
xmlns:viewmodels="using:Signal_Windows.ViewModels"
9-
xmlns:controls="using:Signal_Windows.Controls"
108
mc:Ignorable="d"
119
DataContext="{Binding AddContactPageInstance, Source={StaticResource Locator}}">
1210

@@ -33,4 +31,4 @@
3331
</ListView.ItemTemplate>
3432
</ListView>
3533
</Grid>
36-
</Page>
34+
</Page>

Signal-Windows/Views/AddContactPage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ private void ContactNumberTextBox_TextChanged(object sender, TextChangedEventArg
6666
Vm.ContactNumberTextBox_TextChanged(sender, e);
6767
}
6868
}
69-
}
69+
}

Signal-Windows/Views/MainPage.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ public void ReselectTop()
156156
private void AddContactButton_Click(object sender, RoutedEventArgs e)
157157
{
158158
App.ViewModels.AddContactPageInstance.MainPageVM = Vm;
159-
//App.ViewModels.AddContactPageInstance.ContactName = "";
160-
//App.ViewModels.AddContactPageInstance.ContactNumber = "";
159+
App.ViewModels.AddContactPageInstance.ContactName = "";
160+
App.ViewModels.AddContactPageInstance.ContactNumber = "";
161161
Frame.Navigate(typeof(AddContactPage));
162162
}
163163
}

0 commit comments

Comments
 (0)