X-Git-Url: http://git.giacomolli.uk/onechat/blobdiff_plain/5da3ea038d1e9f9a2634d5ab137aef6989a3a789..d50c22617aafed0d3d87bf4596e933b343a10b60:/memory.go diff --git a/memory.go b/memory.go index d7fff4e..a3665a1 100644 --- a/memory.go +++ b/memory.go @@ -543,13 +543,13 @@ func (m *Memory) View() string { return m.chat.Render() } -// ViewWithout returns the chat view without the leaf lines of the messages in -// skip. -func (m *Memory) ViewWithout(skip map[int]bool) string { +// ViewLines returns the lines of the chat view, each with its newline, without +// the leaf lines of the messages in skip. +func (m *Memory) ViewLines(skip map[int]bool) []string { m.mutex.Lock() defer m.mutex.Unlock() - return m.chat.RenderWithout(skip) + return m.chat.LinesWithout(skip) } // Len returns the number of messages in the log.