Send ordered packet lists for ignore feature

This commit is contained in:
Atlante45 2017-07-11 17:12:12 -07:00
parent 782155e9ea
commit bf13d0cc80

View file

@ -950,7 +950,7 @@ void NodeList::maybeSendIgnoreSetToNode(SharedNodePointer newNode) {
if (_personalMutedNodeIDs.size() > 0) {
// setup a packet list so we can send the stream of ignore IDs
auto personalMutePacketList = NLPacketList::create(PacketType::NodeIgnoreRequest, QByteArray(), true);
auto personalMutePacketList = NLPacketList::create(PacketType::NodeIgnoreRequest, QByteArray(), true, true);
// Force the "enabled" flag in this packet to true
personalMutePacketList->writePrimitive(true);
@ -977,7 +977,7 @@ void NodeList::maybeSendIgnoreSetToNode(SharedNodePointer newNode) {
if (_ignoredNodeIDs.size() > 0) {
// setup a packet list so we can send the stream of ignore IDs
auto ignorePacketList = NLPacketList::create(PacketType::NodeIgnoreRequest, QByteArray(), true);
auto ignorePacketList = NLPacketList::create(PacketType::NodeIgnoreRequest, QByteArray(), true, true);
// Force the "enabled" flag in this packet to true
ignorePacketList->writePrimitive(true);