(limit int, after string, peerID string)
| 474 | } |
| 475 | |
| 476 | func hostAPINetworkDirectRoomQuery(limit int, after string, peerID string) (store.NetworkDirectRoomQuery, error) { |
| 477 | if limit == 0 { |
| 478 | limit = defaultHostAPIDefaultLimit |
| 479 | } |
| 480 | query := store.NetworkDirectRoomQuery{ |
| 481 | PeerID: strings.TrimSpace(peerID), |
| 482 | Limit: limit, |
| 483 | After: strings.TrimSpace(after), |
| 484 | } |
| 485 | if err := query.Validate(); err != nil { |
| 486 | return store.NetworkDirectRoomQuery{}, invalidParamsRPCError(err) |
| 487 | } |
| 488 | return query, nil |
| 489 | } |
| 490 | |
| 491 | func hostAPINetworkConversationMessageQuery( |
| 492 | limit int, |
no test coverage detected