Compare commits

..

4 Commits

Author SHA1 Message Date
skylord123 5de1274def Merge pull request #96 from Skylar-Tech/dev
Release v0.8.0
2024-09-03 21:03:18 -06:00
skylord123 1b54bc03eb Merge pull request #114 from squatica/fix-deprecated-login
stop using deprecated login object
2024-09-03 21:00:27 -06:00
skylord123 65edc94854 Add deprecation notice for Send File and Send Image nodes #102 2024-06-24 19:20:19 -06:00
squatica 2b2da4faf7 stop using deprecated login object 2024-05-06 20:53:04 +02:00
3 changed files with 47 additions and 4 deletions
+21 -1
View File
@@ -1,6 +1,6 @@
<script type="text/javascript">
RED.nodes.registerType('matrix-send-file',{
category: 'matrix',
category: 'matrix (deprecated)',
color: '#00b7ca',
icon: "matrix.png",
outputLabels: ["success", "error"],
@@ -20,6 +20,26 @@
</script>
<script type="text/html" data-template-name="matrix-send-file">
<style>
.matrix-chat-alert {
color: #b94a48;
background-color: #f2dede;
border-color: #eed3d7;
margin: 30px 0;
padding: 8px 35px 8px 14px;
}
.matrix-chat-alert a, .matrix-chat-alert a:active, .matrix-chat-alert a:hover {
color: #b94a48;
text-decoration: underline;
font-weight: bold;
}
</style>
<div class="matrix-chat-alert">
<strong>Deprecation Warning!</strong> This node will be removed in a future release. We have consolidated the Send File & Send Image nodes into a single Upload File node (with more options). Read <a href="https://github.com/Skylar-Tech/node-red-contrib-matrix-chat/issues/102" target="_blank">here</a> for more info.<br>
<br>
Replace this node with a File Upload node attached to a Send Message node to accomplish the same behavior.
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
+21 -1
View File
@@ -1,6 +1,6 @@
<script type="text/javascript">
RED.nodes.registerType('matrix-send-image',{
category: 'matrix',
category: 'matrix (deprecated)',
color: '#00b7ca',
icon: "matrix.png",
outputLabels: ["success", "error"],
@@ -20,6 +20,26 @@
</script>
<script type="text/html" data-template-name="matrix-send-image">
<style>
.matrix-chat-alert {
color: #b94a48;
background-color: #f2dede;
border-color: #eed3d7;
margin: 30px 0;
padding: 8px 35px 8px 14px;
}
.matrix-chat-alert a, .matrix-chat-alert a:active, .matrix-chat-alert a:hover {
color: #b94a48;
text-decoration: underline;
font-weight: bold;
}
</style>
<div class="matrix-chat-alert">
<strong>Deprecation Warning!</strong> This node will be removed in a future release. We have consolidated the Send File & Send Image nodes into a single Upload File node (with more options). Read <a href="https://github.com/Skylar-Tech/node-red-contrib-matrix-chat/issues/102" target="_blank">here</a> for more info.<br>
<br>
Replace this node with a File Upload node attached to a Send Message node to accomplish the same behavior.
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
+3
View File
@@ -489,7 +489,10 @@ module.exports = function(RED) {
matrixClient.login(
'm.login.password', {
identifier: {
type: 'm.id.user',
user: userId,
},
password: password,
initial_device_display_name: displayName
})