Matrix send message error
This commit is contained in:
parent
b52dff12fe
commit
fa306e9542
1 changed files with 11 additions and 8 deletions
|
@ -55,14 +55,17 @@ impl Notifier {
|
|||
match &self.matrix {
|
||||
None => {}
|
||||
Some(OptionSince::Some((_client, room))) => {
|
||||
room.send(
|
||||
if let Err(e) = room
|
||||
.send(
|
||||
ruma::events::room::message::RoomMessageEventContent::text_plain(
|
||||
"New comment.",
|
||||
),
|
||||
None,
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
{
|
||||
error!("Sending Matrix message: {:?}", e);
|
||||
}
|
||||
}
|
||||
Some(OptionSince::NoneSince(earlier)) => {
|
||||
if SystemTime::now().duration_since(*earlier).unwrap()
|
||||
|
|
Loading…
Reference in a new issue