add: better mobile chats state
add: move channels list to turbo-frame fix: don't spam _render (socket)
This commit is contained in:
parent
0dbf660399
commit
c549fdd274
5 changed files with 265 additions and 170 deletions
|
@ -99,6 +99,10 @@ pub fn routes() -> Router {
|
|||
"/chats/{community}/{channel}/_render",
|
||||
post(chats::message_request),
|
||||
)
|
||||
.route(
|
||||
"/chats/{community}/{channel}/_channels",
|
||||
get(chats::channels_request),
|
||||
)
|
||||
}
|
||||
|
||||
pub async fn render_error(
|
||||
|
@ -119,6 +123,14 @@ pub struct PaginatedQuery {
|
|||
pub page: usize,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct ChatsAppQuery {
|
||||
#[serde(default)]
|
||||
pub page: usize,
|
||||
#[serde(default)]
|
||||
pub nav: bool,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct ProfileQuery {
|
||||
#[serde(default)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue