Private
Public Access
1
0

server: messages: add TODO regarding optional params

This commit is contained in:
2023-06-19 18:32:36 -07:00
parent 2d415a1170
commit 64c5169542

View File

@@ -83,6 +83,8 @@ func (m *MockHTTPServer) handleConversations(w http.ResponseWriter, r *http.Requ
} }
func (m *MockHTTPServer) handleMessages(w http.ResponseWriter, r *http.Request) { func (m *MockHTTPServer) handleMessages(w http.ResponseWriter, r *http.Request) {
// TODO handle optional "limit", "beforeDate", "beforeMessageGUID", and "afterMessageGUID" parameters
guid := r.URL.Query().Get("guid") guid := r.URL.Query().Get("guid")
if len(guid) == 0 { if len(guid) == 0 {
log.Println("handleMessage: Got empty guid parameter") log.Println("handleMessage: Got empty guid parameter")