tangled
alpha
login
or
join now
moth11.net
/
rvcx
3
fork
atom
backend for xcvr appview
3
fork
atom
overview
issues
4
pulls
pipelines
add cursor
moth11.net
7 months ago
a7a9080e
6916da17
+7
1 changed file
expand all
collapse all
unified
split
server
internal
handler
lexiconHandlers.go
+7
server/internal/handler/lexiconHandlers.go
···
54
54
}
55
55
var gmo types.GetMessagesOut
56
56
gmo.Messages = messages
57
57
+
if len(messages) != 0 {
58
58
+
smv := messages[len(messages)]
59
59
+
if int(smv.Signet.LrcId) > 2 {
60
60
+
cursor := strconv.Itoa(int(smv.Signet.LrcId))
61
61
+
gmo.Cursor = &cursor
62
62
+
}
63
63
+
}
57
64
w.Header().Set("Content-Type", "application/json")
58
65
encoder := json.NewEncoder(w)
59
66
encoder.Encode(gmo)