mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
CTextMessage: fromCallsign and toCallsign become sender and recipient (to and from looked like conversion methods)
refs #81
This commit is contained in:
@@ -269,8 +269,8 @@ namespace BlackCore
|
||||
CTextMessageList privateMessages = messages.getPrivateMessages();
|
||||
foreach(BlackMisc::Network::CTextMessage message, privateMessages)
|
||||
{
|
||||
if (message.getToCallsign().isEmpty()) continue;
|
||||
m_net->SendPrivateTextMessage(toFSD(message.getToCallsign()), toFSD(message.getMessage()));
|
||||
if (message.getRecipient().isEmpty()) continue;
|
||||
m_net->SendPrivateTextMessage(toFSD(message.getRecipient()), toFSD(message.getMessage()));
|
||||
}
|
||||
CTextMessageList radioMessages = messages.getRadioMessages();
|
||||
if (radioMessages.isEmpty()) return;
|
||||
|
||||
Reference in New Issue
Block a user