@@ -298,6 +298,7 @@ public override ReceiveDataResponse receiveData(byte[] bytes, RemoteEndpoint end
298298 }
299299
300300 case SpixiMessageCode.requestAdd:
301+ case SpixiMessageCode.requestAdd2:
301302 {
302303 if (friend.approved)
303304 {
@@ -315,6 +316,7 @@ public override ReceiveDataResponse receiveData(byte[] bytes, RemoteEndpoint end
315316 break;
316317
317318 case SpixiMessageCode.acceptAdd:
319+ case SpixiMessageCode.acceptAdd2:
318320 {
319321 Node.addMessageWithType(new byte[] { 1 }, FriendMessageType.standard, friend.walletAddress, 0, string.Format(SpixiLocalization._SL("global-friend-request-accepted"), friend.nickname));
320322 ProtocolMessage.resubscribeEvents();
@@ -470,7 +472,7 @@ public static StreamMessage sendAppRequest(Friend friend, string app_id, byte[]
470472 spixi_msg.type = SpixiMessageCode.appRequest;
471473 spixi_msg.data = new SpixiAppData(session_id, data, app_info).getBytes();
472474
473- StreamMessage new_msg = new StreamMessage();
475+ StreamMessage new_msg = new StreamMessage(friend.protocolVersion );
474476 new_msg.type = StreamMessageCode.data;
475477 new_msg.recipient = friend.walletAddress;
476478 new_msg.sender = IxianHandler.getWalletStorage().getPrimaryAddress();
@@ -488,7 +490,7 @@ public static void sendAppRequestAccept(Friend friend, byte[] session_id, byte[]
488490 spixi_msg.type = SpixiMessageCode.appRequestAccept;
489491 spixi_msg.data = new SpixiAppData(session_id, data).getBytes();
490492
491- StreamMessage new_msg = new StreamMessage();
493+ StreamMessage new_msg = new StreamMessage(friend.protocolVersion );
492494 new_msg.type = StreamMessageCode.data;
493495 new_msg.recipient = friend.walletAddress;
494496 new_msg.sender = IxianHandler.getWalletStorage().getPrimaryAddress();
@@ -504,7 +506,7 @@ public static void sendAppRequestReject(Friend friend, byte[] session_id, byte[]
504506 spixi_msg.type = SpixiMessageCode.appRequestReject;
505507 spixi_msg.data = new SpixiAppData(session_id, data).getBytes();
506508
507- StreamMessage new_msg = new StreamMessage();
509+ StreamMessage new_msg = new StreamMessage(friend.protocolVersion );
508510 new_msg.type = StreamMessageCode.data;
509511 new_msg.recipient = friend.walletAddress;
510512 new_msg.sender = IxianHandler.getWalletStorage().getPrimaryAddress();
@@ -520,7 +522,7 @@ public static void sendAppData(Friend friend, byte[] session_id, byte[] data)
520522 spixi_msg.type = SpixiMessageCode.appData;
521523 spixi_msg.data = (new SpixiAppData(session_id, data)).getBytes();
522524
523- StreamMessage msg = new StreamMessage();
525+ StreamMessage msg = new StreamMessage(friend.protocolVersion );
524526 msg.type = StreamMessageCode.data;
525527 msg.recipient = friend.walletAddress;
526528 msg.sender = IxianHandler.getWalletStorage().getPrimaryAddress();
@@ -541,7 +543,7 @@ public static void sendAppEndSession(Friend friend, byte[] session_id, byte[] da
541543 return;
542544 }
543545
544- StreamMessage msg = new StreamMessage();
546+ StreamMessage msg = new StreamMessage(friend.protocolVersion );
545547 msg.type = StreamMessageCode.data;
546548 msg.recipient = friend.walletAddress;
547549 msg.sender = IxianHandler.getWalletStorage().getPrimaryAddress();
0 commit comments