From cd06a27e20717cdfbcc6840328f67405acc7c9e7 Mon Sep 17 00:00:00 2001 From: citrons Date: Mon, 9 Jun 2025 14:45:51 -0500 Subject: jump to message --- server/channel/command.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/channel/command.go b/server/channel/command.go index 05a1c7a..c4eb13b 100644 --- a/server/channel/command.go +++ b/server/channel/command.go @@ -140,7 +140,7 @@ func (c *Channel) SendRequest(r session.Request) { case "latest": max = len(c.messages) min = max - 20 - case "before", "around", "at": + case "before", "around", "after", "at": var id string for k, v := range h.Fields { switch k { @@ -163,6 +163,9 @@ func (c *Channel) SendRequest(r session.Request) { case "around": min = i - 9 max = i + 11 + case "after": + min = i + 1 + max = min + 20 case "at": min = i max = i + 1 -- cgit v1.2.3