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.