Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update convo name label on changed metadata
  • Loading branch information
GlitchedPolygons committed Apr 10, 2019
1 parent c1e2019 commit eef7665
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Expand Up @@ -75,6 +75,13 @@ public bool Pulling
set => Set(ref pulling, value);
}

private string name;
public string Name
{
get => name;
set => Set(ref name, value);
}

private Visibility clipboardTickVisibility = Visibility.Hidden;
public Visibility ClipboardTickVisibility
{
Expand Down Expand Up @@ -114,6 +121,7 @@ public Convo ActiveConvo
StopAutomaticPulling();
Messages = new ObservableCollection<MessageViewModel>();
activeConvo = value;
Name = value?.Name;
Task.Run(() =>
{
LoadLocalMessages();
Expand Down Expand Up @@ -182,7 +190,7 @@ private void OnChangedConvoMetadata(string convoId)
{
return;
}
// TODO: update title label here
Name = convo.Name;
}

private void TransferQueuedMessagesToUI()
Expand Down
Expand Up @@ -25,7 +25,7 @@
Padding="0"
Margin="0,0,0,5"
VerticalAlignment="Center"
Content="{Binding Path=ActiveConvo.Name}" />
Content="{Binding Path=Name}" />

<Rectangle Width="1"
Margin="15,0,15,0"
Expand Down

0 comments on commit eef7665

Please sign in to comment.