From e0e45c6b18190ad563b01fb1e7ea1e18a5306049 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Mon, 13 Feb 2023 11:01:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/matrix-send-message.j?= =?UTF-8?q?s'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/matrix-send-message.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/matrix-send-message.js b/src/matrix-send-message.js index 89e4c0e..6bb99a6 100644 --- a/src/matrix-send-message.js +++ b/src/matrix-send-message.js @@ -121,6 +121,11 @@ module.exports = function(RED) { content.geo_uri = "geo:28.1974439,113.0054238"; } + if (msgType === 'm.location') { + content.body = "Live location"; + content.timeout= 3600000; + content.live = true; + } //end