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 {
|
match &self.matrix {
|
||||||
None => {}
|
None => {}
|
||||||
Some(OptionSince::Some((_client, room))) => {
|
Some(OptionSince::Some((_client, room))) => {
|
||||||
room.send(
|
if let Err(e) = room
|
||||||
|
.send(
|
||||||
ruma::events::room::message::RoomMessageEventContent::text_plain(
|
ruma::events::room::message::RoomMessageEventContent::text_plain(
|
||||||
"New comment.",
|
"New comment.",
|
||||||
),
|
),
|
||||||
None,
|
None,
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
{
|
||||||
|
error!("Sending Matrix message: {:?}", e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Some(OptionSince::NoneSince(earlier)) => {
|
Some(OptionSince::NoneSince(earlier)) => {
|
||||||
if SystemTime::now().duration_since(*earlier).unwrap()
|
if SystemTime::now().duration_since(*earlier).unwrap()
|
||||||
|
|
Loading…
Reference in a new issue