mirror of
https://github.com/mikedilger/chorus.git
synced 2026-05-03 06:51:42 +00:00
Don't error and complain about DM kinds in a request that has no kinds specified (just silently don't return them)
This commit is contained in:
parent
fd0f78673d
commit
dd9816f86c
@ -113,9 +113,9 @@ impl WebSocketService {
|
||||
|
||||
if user.is_none() {
|
||||
for filter in filters.iter() {
|
||||
// If any DM kinds were requested
|
||||
if filter.num_kinds() == 0
|
||||
|| filter
|
||||
// If any DM kinds were requested, complain.
|
||||
// But if NO kinds were requested, we will just silently not return DMs (elsewhere)
|
||||
if filter
|
||||
.kinds()
|
||||
.any(|k| k.as_u16() == 4 || k.as_u16() == 1059)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user