add: blocked users page
This commit is contained in:
parent
6893aeedb5
commit
3706764437
18 changed files with 427 additions and 178 deletions
|
@ -23,7 +23,7 @@ pub async fn stripe_webhook(
|
|||
|
||||
let req = match stripe::Webhook::construct_event(
|
||||
&body,
|
||||
&sig.to_str().unwrap(),
|
||||
sig.to_str().unwrap(),
|
||||
&data.0.stripe.as_ref().unwrap().webhook_signing_secret,
|
||||
) {
|
||||
Ok(e) => e,
|
||||
|
|
|
@ -216,15 +216,13 @@ pub async fn handle_socket(socket: WebSocket, db: DataManager, community_id: Str
|
|||
if !cs {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
if !headers.is_channel {
|
||||
// since we didn't select by just a channel, there HAS to be
|
||||
// an entry for the channel for us to check this message
|
||||
continue;
|
||||
// we don't need to check messages when we're subscribed to
|
||||
// a channel, since that is checked on headers submission when
|
||||
// we subscribe to a channel
|
||||
}
|
||||
} else if !headers.is_channel {
|
||||
// since we didn't select by just a channel, there HAS to be
|
||||
// an entry for the channel for us to check this message
|
||||
continue;
|
||||
// we don't need to check messages when we're subscribed to
|
||||
// a channel, since that is checked on headers submission when
|
||||
// we subscribe to a channel
|
||||
}
|
||||
|
||||
if sink.send(WsMessage::Text(smsg.into())).await.is_err() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue