Merge branch 'GetStream:develop' into fix-web-attachments

This commit is contained in:
Dawid
2021-11-10 17:38:09 +01:00
committed by GitHub
19 changed files with 119 additions and 37 deletions
@@ -110,7 +110,15 @@ class StreamChatState extends State<StreamChat> {
onBackgroundEventReceived: widget.onBackgroundEventReceived,
backgroundKeepAlive: widget.backgroundKeepAlive,
connectivityStream: widget.connectivityStream,
child: widget.child ?? const Offstage(),
child: Builder(
builder: (context) {
StreamChatClient.additionalHeaders = {
'X-Stream-Client':
'${StreamChatClient.defaultUserAgent}-ui',
};
return widget.child ?? const Offstage();
},
),
),
);
},