1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-07 21:47:02 +09:00

removed manual chat widget creation

This commit is contained in:
Mike Mhlv 2025-06-05 13:48:58 +01:00
parent 4dd52a38f2
commit becd8da2bc

View file

@ -106,19 +106,6 @@ const PopupSpaceCreate = observer(forwardRef<{}, I.Popup>(({ param = {}, close }
U.Space.initSpaceState();
if (isChatSpace) {
const limitOptions = U.Menu.getWidgetLimitOptions(I.WidgetLayout.Link);
const chatWidget = {
type: I.BlockType.Link,
content: {
targetBlockId: J.Constant.widgetId.chat,
},
};
C.BlockCreateWidget(S.Block.widgets, '', chatWidget, I.BlockPosition.Top, I.WidgetLayout.Link, Number(limitOptions[0].id), (message: any) => {
if (message.error.code) {
return;
};
});
C.SpaceMakeShareable(S.Common.space, (message: any) => {
if (message.error.code) {
return;