Skip to content

Commit d890a87

Browse files
committed
Use SharedVariables to persist the topic.
1 parent 10bedc3 commit d890a87

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/custom/application/v1/smalltalk.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import org.tinystruct.ApplicationException;
99
import org.tinystruct.ApplicationRuntimeException;
1010
import org.tinystruct.application.Context;
11+
import org.tinystruct.application.SharedVariables;
1112
import org.tinystruct.data.FileEntity;
1213
import org.tinystruct.data.component.Builder;
1314
import org.tinystruct.data.component.Builders;
@@ -110,7 +111,7 @@ public smalltalk index() {
110111
this.setVariable("session_id", request.getSession().getId());
111112

112113
Variable<?> topic;
113-
if ((topic = this.getVariable("meeting_code")) != null) {
114+
if ((topic = SharedVariables.getInstance().getVariable(meetingCode.toString())) != null) {
114115
this.setVariable("topic", topic.getValue().toString().replaceAll("[\r\n]", "<br />"), true);
115116
} else {
116117
this.setVariable("topic", "");

0 commit comments

Comments
 (0)