File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
apps/roam/src/components/canvas Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ import { getSetting } from "~/utils/extensionSettings";
9191import { isPluginTimerReady , waitForPluginTimer } from "~/utils/pluginTimer" ;
9292import { HistoryEntry } from "@tldraw/store" ;
9393import { TLRecord } from "@tldraw/tlschema" ;
94+ import getCurrentUserDisplayName from "roamjs-components/queries/getCurrentUserDisplayName" ;
9495
9596declare global {
9697 interface Window {
@@ -536,6 +537,7 @@ const TldrawCanvas = ({ title }: { title: string }) => {
536537 type : "Tldraw Error" ,
537538 context : {
538539 title : title ,
540+ user : getCurrentUserDisplayName ( ) ,
539541 lastActions : lastActionsRef . current ,
540542 } ,
541543 } ) . catch ( ( ) => { } ) ;
@@ -635,7 +637,7 @@ const TldrawCanvas = ({ title }: { title: string }) => {
635637
636638 app . on ( "change" , ( entry ) => {
637639 lastActionsRef . current . push ( entry ) ;
638- if ( lastActionsRef . current . length > 10 )
640+ if ( lastActionsRef . current . length > 5 )
639641 lastActionsRef . current . shift ( ) ;
640642 } ) ;
641643
You can’t perform that action at this time.
0 commit comments