Bug fixes

This commit is contained in:
emad-salah 2021-04-21 21:23:22 +00:00
parent e0310f13ca
commit 45ccd627b5

View file

@ -15,7 +15,6 @@ const {
encryptedOn, encryptedOn,
encryptedCallback encryptedCallback
} = require('../../../utils/ECC/socket') } = require('../../../utils/ECC/socket')
const TipsForwarder = require('../../tipsCallback')
const auth = require('../../auth/auth') const auth = require('../../auth/auth')
const ALLOWED_GUN_METHODS = [ const ALLOWED_GUN_METHODS = [
@ -388,10 +387,6 @@ const startSocket = socket => {
}) })
) )
on('streams:postID', postID => {
TipsForwarder.addSocket(postID, socket)
})
on('unsubscribe', ({ subscriptionId }, response) => { on('unsubscribe', ({ subscriptionId }, response) => {
const callback = encryptedCallback(socket, response) const callback = encryptedCallback(socket, response)
Subscriptions.remove({ deviceId: encryptionId, subscriptionId }) Subscriptions.remove({ deviceId: encryptionId, subscriptionId })