radames commited on
Commit
f365598
1 Parent(s): aaad031

remove history flag

Browse files
.gitignore CHANGED
@@ -17,4 +17,5 @@ flagged/
17
  data
18
  data.db
19
  data.json
20
- rooms.db
 
 
17
  data
18
  data.db
19
  data.json
20
+ rooms.db
21
+ sd-multiplayer-data/
frontend/src/lib/App.svelte CHANGED
@@ -21,7 +21,7 @@
21
  import { useMyPresence, useObject, useOthers } from '$lib/liveblocks';
22
  import { nanoid } from 'nanoid';
23
 
24
- const myPresence = useMyPresence({ addToHistory: true });
25
  const others = useOthers();
26
  let showModal = false;
27
  function getKey(position: { x: number; y: number }): PromptImgKey {
 
21
  import { useMyPresence, useObject, useOthers } from '$lib/liveblocks';
22
  import { nanoid } from 'nanoid';
23
 
24
+ const myPresence = useMyPresence();
25
  const others = useOthers();
26
  let showModal = false;
27
  function getKey(position: { x: number; y: number }): PromptImgKey {
frontend/src/lib/PaintCanvas.svelte CHANGED
@@ -12,7 +12,7 @@
12
  import type { PromptImgObject } from '$lib/types';
13
  import { FRAME_SIZE, GRID_SIZE } from '$lib/constants';
14
 
15
- const myPresence = useMyPresence({ addToHistory: true });
16
  const promptImgStorage = useObject('promptImgStorage');
17
 
18
  const height = $canvasSize.height;
 
12
  import type { PromptImgObject } from '$lib/types';
13
  import { FRAME_SIZE, GRID_SIZE } from '$lib/constants';
14
 
15
+ const myPresence = useMyPresence();
16
  const promptImgStorage = useObject('promptImgStorage');
17
 
18
  const height = $canvasSize.height;
frontend/src/lib/PaintFrame.svelte CHANGED
@@ -14,7 +14,7 @@
14
  import { createEventDispatcher } from 'svelte';
15
 
16
  import { Status } from './types';
17
- const myPresence = useMyPresence({ addToHistory: true });
18
 
19
  const dispatch = createEventDispatcher();
20
 
 
14
  import { createEventDispatcher } from 'svelte';
15
 
16
  import { Status } from './types';
17
+ const myPresence = useMyPresence();
18
 
19
  const dispatch = createEventDispatcher();
20
 
frontend/src/lib/PromptModal.svelte CHANGED
@@ -10,7 +10,7 @@
10
  let prompt: string;
11
  let inputEl: HTMLInputElement;
12
  let boxEl: HTMLDivElement;
13
- const myPresence = useMyPresence({ addToHistory: true });
14
 
15
  const onKeyup = (e: KeyboardEvent) => {
16
  if (e.key === 'Escape') {
 
10
  let prompt: string;
11
  let inputEl: HTMLInputElement;
12
  let boxEl: HTMLDivElement;
13
+ const myPresence = useMyPresence();
14
 
15
  const onKeyup = (e: KeyboardEvent) => {
16
  if (e.key === 'Escape') {
frontend/src/lib/liveblocks/useUpdateMyPresence.ts CHANGED
@@ -15,6 +15,6 @@ import { useMyPresence } from "./useMyPresence";
15
  */
16
 
17
  export function useUpdateMyPresence(): (val: any) => void {
18
- const presence = useMyPresence({ addToHistory: true });
19
  return (updatedPresence) => presence.update(updatedPresence);
20
  }
 
15
  */
16
 
17
  export function useUpdateMyPresence(): (val: any) => void {
18
+ const presence = useMyPresence();
19
  return (updatedPresence) => presence.update(updatedPresence);
20
  }