public void AddMessage(IConversationMessage message) { if ((message.MessageContents == null) && !message.HasAttachments()) { return; } _messagesSorted = false; _messages.Add(message); }
public void AddMessage(IConversationMessage message) { if ((message.MessageContents == null) && !message.HasAttachments()) { return; } _messagesSorted = false; _messages.Add(message); }
private void ProcessMessage(int messageIndex) { IConversationMessage message = _conversation.GetMessage(messageIndex); if (message.Timestamp.Date != _lastMessageDate) { StartNewParagraph(); AddDateLine(message.Timestamp); _lastMessageDate = message.Timestamp.Date; } AddLineBreak(); AddMessageLine(message); if (_displayOptions.LoadMmsAttachments && message.HasAttachments()) { foreach (IMessageAttachment attachment in message.Attachments) { AddLineBreak(); try { AddAttachment(attachment); } catch { // Ignore attachment errors } } } _lastMessageReadIndex = messageIndex; }