From 8e8fa1b2f5a0d4efd69246067cbffe6977f5b4ac Mon Sep 17 00:00:00 2001 From: Denver Gingerich Date: Fri, 17 Apr 2020 22:54:45 +0000 Subject: [PATCH] indicate XEP-0033 support, add several TODO items The XEP-0033 support is per https://wiki.soprani.ca/SGX/GroupMMS - we don't actually support it yet, but we will with subsequent commits. Just turn it on for now to confirm Cheogram sees it. --- sgx-bwmsgsv2.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sgx-bwmsgsv2.rb b/sgx-bwmsgsv2.rb index 6e36a138141590194fc4e669d411473b7e829a2c..c7a9f92f565e622bda66a2365bde698222953f11 100755 --- a/sgx-bwmsgsv2.rb +++ b/sgx-bwmsgsv2.rb @@ -87,6 +87,7 @@ module SGXbwmsgsv2 @client = SGXClient.new @gateway_features = [ "http://jabber.org/protocol/disco#info", + "http://jabber.org/protocol/address/", "jabber:iq:register" ] @@ -410,9 +411,10 @@ module SGXbwmsgsv2 [{category: 'client', type: 'sms'}] end + # TODO: must re-add stuff so can do ad-hoc commands def self.user_cap_features [ - "urn:xmpp:receipts" + "urn:xmpp:receipts", ] end @@ -755,6 +757,8 @@ class WebhookHandler < Goliath::API use Goliath::Rack::Params def response(env) + # TODO: add timestamp grab here, and MUST include ./tai version + puts 'ENV: ' + env.reject{ |k| k == 'params' }.to_s users_num = ''