MCPcopy Create free account
hub / github.com/B33pBeeps/redthread / normalizeLegacy

Method normalizeLegacy

internal/app/notes.go:174–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172}
173
174func (s *StringConn) normalizeLegacy() {
175 if s.A.NoteID == "" && s.A.X == 0 && s.A.Y == 0 && s.FromID != "" {
176 s.A.NoteID = s.FromID
177 }
178 if s.B.NoteID == "" && s.B.X == 0 && s.B.Y == 0 && s.ToID != "" {
179 s.B.NoteID = s.ToID
180 }
181 s.FromID = ""
182 s.ToID = ""
183}
184
185func (s *StringConn) InvolvesNote(id string) bool {
186 return s.A.NoteID == id || s.B.NoteID == id

Callers 3

LoadWorkspaceFunction · 0.45
normalizeLoadedBoardFunction · 0.45

Calls

no outgoing calls

Tested by 1