diff --git a/scripts/install/test.sh b/scripts/install/test.sh index eb3f6a200..049dc19c8 100755 --- a/scripts/install/test.sh +++ b/scripts/install/test.sh @@ -1202,6 +1202,40 @@ EOF openim::test::check_error "$response" } +# Pulls messages by sequence. +openim::test::pull_msg_by_seq() { + local userID="${1}" + local conversationID="${2}" + local beginSeq="${3}" + local endSeq="${4}" + local num="${5}" + local order="${6}" # Assuming 0 for ascending, 1 for descending + + # Construct the request body + local request_body=$(cat <