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:
parent
4dd52a38f2
commit
becd8da2bc
1 changed files with 0 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue