Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
valeriansaliou committed Jun 9, 2022
1 parent 591416c commit a3b0366
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions prose_core_client/src/protocol/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl ProseProtocolMessage {
log::debug!("[message] got normal stanza");

// Alias to 'chat'
Self::handle_chat(connection, stanza)
Self::handle_normal(connection, stanza)
}
Some("headline") => {
log::debug!("[message] got headline stanza");
Expand Down Expand Up @@ -74,10 +74,9 @@ impl ProseProtocolMessage {
Ok(())
}

fn handle_normal(_connection: &mut Connection, _stanza: &Stanza) -> Result<(), Error> {
// TODO

Ok(())
fn handle_normal(connection: &mut Connection, stanza: &Stanza) -> Result<(), Error> {
// Alias to 'chat'
Self::handle_chat(connection, stanza)
}

fn handle_headline(_connection: &mut Connection, _stanza: &Stanza) -> Result<(), Error> {
Expand Down

0 comments on commit a3b0366

Please sign in to comment.