[MessagePort] Fix bug for getting remote value (#2555)
authorkilig <inkyun.kil@samsung.com>
Tue, 26 Jan 2021 00:25:02 +0000 (09:25 +0900)
committerGitHub <noreply@github.com>
Tue, 26 Jan 2021 00:25:02 +0000 (09:25 +0900)
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
src/Tizen.Applications.MessagePort/Tizen.Applications.Messages/MessagePort.cs

index f7cddc0..d6cde61 100755 (executable)
@@ -174,15 +174,12 @@ namespace Tizen.Applications.Messages
                         return;
                     }
 
-                    if (!String.IsNullOrEmpty(remotePortName) && !String.IsNullOrEmpty(remoteAppId))
+                    args.Remote = new RemoteValues()
                     {
-                        args.Remote = new RemoteValues()
-                        {
-                            AppId = remoteAppId,
-                            PortName = remotePortName,
-                            Trusted = trusted
-                        };
-                    }
+                        AppId = remoteAppId,
+                        PortName = remotePortName,
+                        Trusted = trusted
+                    };
                     MessageReceived?.Invoke(this, args);
                 };