private bool SetCallTemplate(MessageViewModel message, MessageCall call, string title) { Visibility = Visibility.Visible; HideThumbnail(); var outgoing = message.IsOutgoing; var missed = call.DiscardReason is CallDiscardReasonMissed || call.DiscardReason is CallDiscardReasonDeclined; SetTitle(GetFromLabel(message, title)); SetService(call.ToOutcomeText(message.IsOutgoing)); SetMessage(string.Empty); return(true); }
private bool SetCallTemplate(MessageViewModel message, MessageCall call, string title) { Visibility = Visibility.Visible; if (ThumbRoot != null) { ThumbRoot.Visibility = Visibility.Collapsed; } var outgoing = message.IsOutgoing; var missed = call.DiscardReason is CallDiscardReasonMissed || call.DiscardReason is CallDiscardReasonDeclined; TitleLabel.Text = GetFromLabel(message, title); ServiceLabel.Text = call.ToOutcomeText(message.IsOutgoing); MessageLabel.Text = string.Empty; return(true); }