mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T519, only simplify text messages, do not remove accents
This commit is contained in:
committed by
Mat Sutcliffe
parent
898e8560d9
commit
6e9d1c7940
@@ -545,7 +545,7 @@ namespace BlackCore
|
||||
{
|
||||
if (message.getRecipientCallsign().isEmpty()) { continue; }
|
||||
Vat_SendTextMessage(m_net.data(), toFSD(message.getRecipientCallsign()), toFSD(message.getMessage()));
|
||||
emit textMessageSent(message);
|
||||
emit this->textMessageSent(message);
|
||||
}
|
||||
|
||||
CTextMessageList radioMessages = messages.getRadioMessages();
|
||||
@@ -1531,7 +1531,10 @@ namespace BlackCore
|
||||
QString CNetworkVatlib::simplifyTextMessage(const QString &msg)
|
||||
{
|
||||
if (msg.isEmpty()) { return {}; }
|
||||
return asciiOnlyString(simplifyAccents(msg.simplified().trimmed()));
|
||||
|
||||
// per discussion of T519 only simplify, do not remove accents
|
||||
// return asciiOnlyString(simplifyAccents(msg.simplified().trimmed()));
|
||||
return msg.simplified().trimmed();
|
||||
}
|
||||
|
||||
const QJsonObject &CNetworkVatlib::JsonPackets::aircraftConfigRequest()
|
||||
|
||||
Reference in New Issue
Block a user