Merge pull request #10 from MurzNN/master

Fix fetching groupInfo for private chats with group
This commit is contained in:
Inex Code 2021-02-15 23:47:44 +03:00 committed by GitHub
commit 0ae82e5473
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "mx-puppet-vk", "name": "mx-puppet-vk",
"version": "0.5.0", "version": "0.5.1",
"description": "Matrix <-> VK bridge based on mx-puppet-bridge and VK-IO.", "description": "Matrix <-> VK bridge based on mx-puppet-bridge and VK-IO.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -116,7 +116,7 @@ export class VkPuppet {
break; break;
case "group": case "group":
const groupInfo = await p.client.api.groups.getById({ group_id: info.items[0].peer.id }); const groupInfo = await p.client.api.groups.getById({ group_id: Math.abs(info.items[0].peer.id).toString() });
response = { response = {
puppetId, puppetId,
roomId: peerId.toString(), roomId: peerId.toString(),