We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da4c789 commit fc2ef52Copy full SHA for fc2ef52
lib/src/chatbox.dart
@@ -174,12 +174,9 @@ class ChatBoxState extends State<ChatBox> {
174
options["signature"] = widget.session.signature;
175
}
176
177
- execute('const options = ${json.encode(options)};');
+ options["me"] = getUserVariableName(widget.session.me);
178
179
- final variableName = getUserVariableName(widget.session.me);
180
- execute('options["me"] = $variableName;');
181
-
182
- execute('const session = new Talk.Session(options);');
+ execute('const session = new Talk.Session(${json.encode(options)});');
183
184
185
void _createChatBox() {
0 commit comments