Remove check for same sender/recipient in MessageToSend as this condition is not true anymore
authorThomas
Wed, 17 Oct 2018 08:04:35 +0200
changeset 2408f4f711fe1c98
parent 2407 20224390f6c0
child 2409 8908fefc77e3
child 2411 7c11662710d3
Remove check for same sender/recipient in MessageToSend as this condition is not true anymore
AdapterCallbacks.cs
     1.1 --- a/AdapterCallbacks.cs	Mon Oct 15 16:52:05 2018 +0200
     1.2 +++ b/AdapterCallbacks.cs	Wed Oct 17 08:04:35 2018 +0200
     1.3 @@ -227,15 +227,6 @@
     1.4                  Marshal.ThrowExceptionForHR(0xD /* ERROR_INVALID_DATA */ );
     1.5              }
     1.6  
     1.7 -            // Validate the From/To identities which always must match
     1.8 -            if ((newMessage.From == null) ||
     1.9 -                (newMessage.To.Count != 1) ||
    1.10 -                (newMessage.From.EqualsByAddress(newMessage.To[0]) == false))
    1.11 -            {
    1.12 -                Log.Error("MessageToSend: From does not match To");
    1.13 -                Marshal.ThrowExceptionForHR(0xD /* ERROR_INVALID_DATA */);
    1.14 -            }
    1.15 -
    1.16              // Now send the message
    1.17              try
    1.18              {