MCPcopy Create free account
hub / github.com/SolarLune/masterplan / ReceiveMessage

Method ReceiveMessage

contents.go:3585–3597  ·  view source on GitHub ↗
(msg *Message)

Source from the content-addressed store, hash-verified

3583}
3584
3585func (sb *SubPageContents) ReceiveMessage(msg *Message) {
3586
3587 if (msg.Type == MessagePageChanged || msg.Type == MessageThemeChange) && sb.Card.Page.IsCurrent() {
3588 sb.TakeScreenshot()
3589 }
3590
3591 if sb.SubPage != nil {
3592 if msg.Type == MessageCardDeleted {
3593 globals.Hierarchy.AddPage(sb.SubPage)
3594 }
3595 }
3596
3597}
3598
3599func (sb *SubPageContents) TakeScreenshot() {
3600

Callers

nothing calls this directly

Calls 3

TakeScreenshotMethod · 0.95
IsCurrentMethod · 0.80
AddPageMethod · 0.45

Tested by

no test coverage detected