From d260c3c3fa073d1a9d09b94c5c4749334e26ab9a Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sun, 10 Apr 2022 19:07:42 +0800
Subject: ...

---
 FrontEnd/src/views/timeline/TimelineMember.tsx | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

(limited to 'FrontEnd/src/views/timeline/TimelineMember.tsx')

diff --git a/FrontEnd/src/views/timeline/TimelineMember.tsx b/FrontEnd/src/views/timeline/TimelineMember.tsx
index 59d4c371..27355081 100644
--- a/FrontEnd/src/views/timeline/TimelineMember.tsx
+++ b/FrontEnd/src/views/timeline/TimelineMember.tsx
@@ -116,7 +116,11 @@ const TimelineMemberUserSearch: React.FC<{
                     add
                     onAction={() => {
                       void getHttpTimelineClient()
-                        .memberPut(timeline.name, user.username)
+                        .memberPut(
+                          timeline.owner.username,
+                          timeline.nameV2,
+                          user.username
+                        )
                         .then(() => {
                           setUserSearchText("");
                           setUserSearchState({ type: "init" });
@@ -160,7 +164,11 @@ const TimelineMember: React.FC<TimelineMemberProps> = (props) => {
               timeline.manageable && index !== 0
                 ? () => {
                     void getHttpTimelineClient()
-                      .memberDelete(timeline.name, member.username)
+                      .memberDelete(
+                        timeline.owner.username,
+                        timeline.nameV2,
+                        member.username
+                      )
                       .then(onChange);
                   }
                 : undefined
-- 
cgit v1.2.3

