+
+
+ {activityItem.field ? (
+ activityItem.new_value === "restore" && (
+
+ )
+ ) : activityItem.actor_detail.avatar &&
+ activityItem.actor_detail.avatar !== "" ? (
+
+ ) : (
+
+ {activityItem.actor_detail.display_name?.charAt(0)}
+
+ )}
-
-
-
-
-
-
-
- {activityItem.actor_detail.is_bot
- ? activityItem.actor_detail.first_name + " Bot"
- : activityItem.actor_detail.display_name}
-
-
- Commented {timeAgo(activityItem.created_at)}
-
+
+
+
-
-
+
+
+
+ {activityItem.actor_detail.is_bot
+ ? activityItem.actor_detail.first_name + " Bot"
+ : activityItem.actor_detail.display_name}
+
+
+ Commented {timeAgo(activityItem.created_at)}
+
+
+
+
+
-
- );
- }
+ );
+ }
- const message =
- activityItem.verb === "created" &&
- activityItem.field !== "cycles" &&
- activityItem.field !== "modules" &&
- activityItem.field !== "attachment" &&
- activityItem.field !== "link" &&
- activityItem.field !== "estimate" ? (
-
- created{" "}
-
-
- this issue.
-
-
-
- ) : activityItem.field ? (
-
- ) : (
- "created the issue."
- );
+ const message =
+ activityItem.verb === "created" &&
+ activityItem.field !== "cycles" &&
+ activityItem.field !== "modules" &&
+ activityItem.field !== "attachment" &&
+ activityItem.field !== "link" &&
+ activityItem.field !== "estimate" ? (
+
+ created{" "}
+
+
+ this issue.
+
+
+
+ ) : activityItem.field ? (
+
+ ) : (
+ "created the issue."
+ );
- if ("field" in activityItem && activityItem.field !== "updated_by") {
- return (
-
-
- {userActivity.results.length > 1 &&
- activityIdx !== userActivity.results.length - 1 ? (
-
- ) : null}
-
- <>
-
-
-
-
- {activityItem.field ? (
- activityItem.new_value === "restore" ? (
-
+
+ {userActivity.results.length > 1 &&
+ activityIdx !== userActivity.results.length - 1 ? (
+
+ ) : null}
+
+ <>
+
+
+
+
+ {activityItem.field ? (
+ activityItem.new_value === "restore" ? (
+
+ ) : (
+
+ )
+ ) : activityItem.actor_detail.avatar &&
+ activityItem.actor_detail.avatar !== "" ? (
+
) : (
-
- )
- ) : activityItem.actor_detail.avatar &&
- activityItem.actor_detail.avatar !== "" ? (
-
- ) : (
-
- {activityItem.actor_detail.display_name?.charAt(0)}
-
- )}
+
+ {activityItem.actor_detail.display_name?.charAt(0)}
+
+ )}
+
-
-
-
- {activityItem.field === "archived_at" &&
- activityItem.new_value !== "restore" ? (
-
Plane
- ) : activityItem.actor_detail.is_bot ? (
-
- {activityItem.actor_detail.first_name} Bot
+
-
- >
+ >
+
-
-
- );
- }
- })}
-
-
+
+ );
+ }
+ })}
+
+
+ ) : null
+ ) : (
+
+
+
+
+
+
)}