Browse Source

Fix fetching groupInfo for private chats with group

master
Alexey Murz Korepov 7 months ago
parent
commit
2459741e16
  1. 2
      package.json
  2. 2
      src/vk.ts

2
package.json

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

2
src/vk.ts

@ -116,7 +116,7 @@ export class VkPuppet {
break;
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 = {
puppetId,
roomId: peerId.toString(),

Loading…
Cancel
Save