[SMS App] Use helper rather than hard-coding MessageTypeSent in the code
This commit is contained in:
parent
60bf200723
commit
70c712808f
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ void ConversationModel::createRowFromMessage(const ConversationMessage& message,
|
|||
|
||||
auto item = new QStandardItem;
|
||||
item->setText(displayBody);
|
||||
item->setData(message.type() == ConversationMessage::MessageTypeSent, FromMeRole);
|
||||
item->setData(message.isOutgoing(), FromMeRole);
|
||||
item->setData(message.date(), DateRole);
|
||||
item->setData(senderName, SenderRole);
|
||||
insertRow(pos, item);
|
||||
|
|
Loading…
Reference in a new issue