GitLab will be offline for essential maintenance from 22/08/25 - 25/08/25. During this time, GitLab will be read-only with some short periods of complete unavailability.
useEffect(()=>{console.log("invite was set",invite);},[invite]);
// *** todo - WE SHOULD SELECT THE IMAGE FROM THE IMAGE REPO, NOT UPLOAD IT !
// *** todo - WE SHOULD SELECT THE IMAGE FROM THE IMAGE REPO, NOT UPLOAD IT !
// - THERE IS A REPO FUNCTION TO OBTAIN THE HASH TOO, SO NO NEED TO SHA3 IT HERE...
// - THERE IS A REPO FUNCTION TO OBTAIN THE HASH TOO, SO NO NEED TO SHA3 IT HERE...
...
@@ -127,7 +118,8 @@ export default function App() {
...
@@ -127,7 +118,8 @@ export default function App() {
if (connectionResults.length===0)return;
if (connectionResults.length===0)return;
constconn=connectionResults[0];// todo *** should search presentationResults for a match against INVITATION; don't just get the "latest" one ([0]) - see below also
constconn=connectionResults[0];// todo *** should search presentationResults for a match against INVITATION; don't just get the "latest" one ([0]) - see below also
console.log(conn);
console.log("conn1",conn);
console.log(invite);
switch (conn.rfc23_state){
switch (conn.rfc23_state){
case"request-received":
case"request-received":
...
@@ -143,6 +135,7 @@ export default function App() {
...
@@ -143,6 +135,7 @@ export default function App() {
break;
break;
case"completed":
case"completed":
if (!invite.label)returnconsole.log("no invite was found, so the web socket presentation marked as completed was not actioned - it must have been processed earlier.");
console.log("completed");
console.log("completed");
letbody={};
letbody={};
...
@@ -175,7 +168,7 @@ export default function App() {
...
@@ -175,7 +168,7 @@ export default function App() {
useEffect(()=>{
useEffect(()=>{
if (presentationResults.length===0)return;
if (presentationResults.length===0)return;
constconn=presentationResults[0];// todo *** should search presentationResults for a match against INVITATION; don't just get the "latest" one ([0]) - see below also
constconn=presentationResults[0];// todo *** should search presentationResults for a match against INVITATION; don't just get the "latest" one ([0]) - see below also
console.log("conn",conn);
console.log("conn2",conn);
switch (conn.state){
switch (conn.state){
case"presentation_received":
case"presentation_received":
...
@@ -215,9 +208,7 @@ export default function App() {
...
@@ -215,9 +208,7 @@ export default function App() {