@patricktobias86/node-red-telegram-account 1.1.12 → 1.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/nodes/receiver.js CHANGED
@@ -16,7 +16,7 @@ module.exports = function (RED) {
16
16
  if (debug) {
17
17
  node.log('receiver update: ' + util.inspect(update, { depth: null }));
18
18
  }
19
- if (update.message.fromId != null && !ignore.includes(update.message.fromId.userId.toString())) {
19
+ if (update.message.fromId != null && update.message.fromId.userId != null && !ignore.includes(update.message.fromId.userId.toString())) {
20
20
  const out = { payload: { update } };
21
21
  node.send(out);
22
22
  if (debug) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patricktobias86/node-red-telegram-account",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "Node-RED nodes to communicate with GramJS.",
5
5
  "main": "nodes/config.js",
6
6
  "keywords": [
package/AGENTS.md DELETED
@@ -1,5 +0,0 @@
1
- # Repository Instructions
2
-
3
- - Always run `npm test` before creating a commit.
4
- - If a code change alters user-facing behavior, update the README and any relevant docs to reflect the change.
5
- - Bump version for any code change