Remove app com user session event 77/321777/1
authorChanggyu Choi <changyu.choi@samsung.com>
Fri, 28 Mar 2025 05:16:39 +0000 (14:16 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Fri, 28 Mar 2025 05:16:39 +0000 (14:16 +0900)
removes that event because the multi-user scenario is virtually unused.

Change-Id: Icde3efdf1d0656f90f4aa7065396ee751ae2ca01
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/lib/app_status/app_status_manager.cc

index 4752271f284356fd336b207f91f1e52853b11f04..23903d527705d90ce6c6dd1e55c250559f6028fe 100644 (file)
@@ -560,33 +560,22 @@ int AppStatusManager::PublishStatus(int pid, int context_status) {
   auto& appid = app_status->GetAppID();
   uid_t app_user_uid = app_status->GetUID();
 
-  std::string endpoint_user = APP_STATUS_EVENT + ":" + appid + ":" +
-      std::to_string(app_user_uid);
   std::string endpoint_system = APP_STATUS_EVENT + ":" + appid;
-  std::string endpoint_user2 = APP_STATUS_EVENT + ":"+
-      std::to_string(app_user_uid);
   std::string endpoint_system2 = APP_STATUS_EVENT;
 
-  bool endpoint_user_exists = _app_com_endpoint_exists(endpoint_user.c_str());
   bool endpoint_system_exists =
       _app_com_endpoint_exists(endpoint_system.c_str());
-  bool endpoint_user2_exists = _app_com_endpoint_exists(endpoint_user2.c_str());
   bool endpoint_system2_exists =
       _app_com_endpoint_exists(endpoint_system2.c_str());
-  if (!endpoint_system_exists && !endpoint_user_exists &&
-      !endpoint_system2_exists && !endpoint_user2_exists)
+  if (!endpoint_system_exists && !endpoint_system2_exists)
     return -1;
 
   auto b = CreateAppStatusBundle(app_status);
   b.Add("__CONTEXT_STATUS__", std::to_string(context_status));
   if (endpoint_system_exists)
     _app_com_send(endpoint_system.c_str(), pid, b.GetHandle(), app_user_uid);
-  if (endpoint_user_exists)
-    _app_com_send(endpoint_user.c_str(), pid, b.GetHandle(), app_user_uid);
   if (endpoint_system2_exists)
     _app_com_send(endpoint_system2.c_str(), pid, b.GetHandle(), app_user_uid);
-  if (endpoint_user2_exists)
-    _app_com_send(endpoint_user2.c_str(), pid, b.GetHandle(), app_user_uid);
 
   return 0;
 }