Recent activity

[PATCH sgx-jmp] Initial bare-bones admin command for launching a snikket instance a day ago

From Stephen Paul Weber to ~singpolyma/dev

---
 config-schema.dhall       |   1 +
 config.dhall.sample       |   1 +
 forms/snikket_launch.rb   |   9 ++++
 forms/snikket_launched.rb |  19 +++++++
 lib/snikket.rb            | 104 ++++++++++++++++++++++++++++++++++++++
 sgx_jmp.rb                |  32 ++++++++++++
 test/test_snikket.rb      |  73 ++++++++++++++++++++++++++
 7 files changed, 239 insertions(+)
 create mode 100644 forms/snikket_launch.rb
 create mode 100644 forms/snikket_launched.rb
 create mode 100644 lib/snikket.rb
 create mode 100644 test/test_snikket.rb
[message trimmed]

[PATCH sgx-jmp] Limit size of credit card transaction by trust level a day ago

From Stephen Paul Weber to ~singpolyma/dev

---
 lib/transaction.rb       | 13 ++++++++-----
 lib/trust_level.rb       | 16 ++++++++++++++++
 test/test_transaction.rb | 32 +++++++++++++++++++++++++++++---
 3 files changed, 53 insertions(+), 8 deletions(-)

diff --git a/lib/transaction.rb b/lib/transaction.rb
index 83e8e15..da9df26 100644
--- a/lib/transaction.rb
+++ b/lib/transaction.rb
@@ -2,26 +2,29 @@

require "bigdecimal"

[message trimmed]

[PATCH sgx-jmp] Only one credit card transaction per customer per day a day ago

From Stephen Paul Weber to ~singpolyma/dev

---
 lib/transaction.rb       | 13 +++++++++++--
 test/test_transaction.rb | 40 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 2 deletions(-)

diff --git a/lib/transaction.rb b/lib/transaction.rb
index 83e8e15..3ee1d01 100644
--- a/lib/transaction.rb
+++ b/lib/transaction.rb
@@ -18,10 +18,12 @@ class Transaction

	def self.resolve_payment_method(customer, payment_method)
		EMPromise.all([
			REDIS.exists("jmp_customer_credit_card_lock-#{customer.customer_id}"),
[message trimmed]

[PATCH cheogram-android 2/2] Contact sync needs to happen when we discover a new gateway 3 days ago

From Stephen Paul Weber to ~singpolyma/dev

Since that can change the outcome of the sync operation.
---
 .../eu/siacs/conversations/services/XmppConnectionService.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
index 33abf6397..a62225b2b 100644
--- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
@@ -4694,6 +4694,7 @@ public class XmppConnectionService extends Service {
            }
            if (disco.hasIdentity("gateway", "pstn")) {
                contact.registerAsPhoneAccount(this);
                mQuickConversationsService.considerSyncBackground(false);
[message trimmed]

[PATCH cheogram-android 1/2] Skip contact sync work if there are no gateways configured 3 days ago

From Stephen Paul Weber to ~singpolyma/dev

Or if syncing before gateways have been discovered, etc.  Don't do the work if
we know nothing will come of it.
---
 .../conversations/services/QuickConversationsService.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/cheogram/java/eu/siacs/conversations/services/QuickConversationsService.java b/src/cheogram/java/eu/siacs/conversations/services/QuickConversationsService.java
index b12bd1c36..9c72ceff1 100644
--- a/src/cheogram/java/eu/siacs/conversations/services/QuickConversationsService.java
+++ b/src/cheogram/java/eu/siacs/conversations/services/QuickConversationsService.java
@@ -97,9 +97,11 @@ public class QuickConversationsService extends AbstractQuickConversationsService
    }

    protected void considerSync(boolean forced) {
[message trimmed]

[PATCH cheogram-android] Move video MIME above audio MIME 6 days ago

From Stephen Paul Weber to ~singpolyma/dev

So that when a file extension is ambiguous, we guess video.
---
 .../siacs/conversations/utils/MimeUtils.java  | 66 +++++++++----------
 1 file changed, 33 insertions(+), 33 deletions(-)

diff --git a/src/main/java/eu/siacs/conversations/utils/MimeUtils.java b/src/main/java/eu/siacs/conversations/utils/MimeUtils.java
index 30ab1db48..3e5ecec60 100644
--- a/src/main/java/eu/siacs/conversations/utils/MimeUtils.java
+++ b/src/main/java/eu/siacs/conversations/utils/MimeUtils.java
@@ -225,6 +225,39 @@ public final class MimeUtils {
        add("application/x-xcf", "xcf");
        add("application/x-xfig", "fig");
        add("application/xhtml+xml", "xhtml");
        add("video/3gpp", "3gpp");
[message trimmed]

[PATCH cheogram-android] Darker Obsidian 7 days ago

From Stephen Paul Weber to ~singpolyma/dev

---
 src/cheogram/res/values/themes.xml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/cheogram/res/values/themes.xml b/src/cheogram/res/values/themes.xml
index 1eac1a82c..cdd7ad249 100644
--- a/src/cheogram/res/values/themes.xml
+++ b/src/cheogram/res/values/themes.xml
@@ -309,6 +309,11 @@
        <item name="colorPrimaryDark">#1E0036</item>
        <item name="colorAccent">@color/yeller</item>

        <item name="color_background_primary">#0E0020</item>
        <item name="color_background_secondary">@color/black</item>
[message trimmed]

[PATCH sgx-jmp] Only allow one credit card transaction per customer per day 8 days ago

From Stephen Paul Weber to ~singpolyma/dev

---
 lib/transaction.rb       |  4 +++-
 test/test_transaction.rb | 13 +++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/lib/transaction.rb b/lib/transaction.rb
index 83e8e15..58bfa3f 100644
--- a/lib/transaction.rb
+++ b/lib/transaction.rb
@@ -18,9 +18,11 @@ class Transaction

	def self.resolve_payment_method(customer, payment_method)
		EMPromise.all([
			ExpiringLock.new("jmp_customer_credit_card_lock-#{customer.customer_id}")
[message trimmed]

[PATCH jmp-pay] Add script to cancel expired customers 8 days ago

From Stephen Paul Weber to ~singpolyma/dev

---
 Gemfile                      |   4 +-
 bin/cancel_expired_customers | 161 +++++++++++++++++++++++++++++++++++
 2 files changed, 164 insertions(+), 1 deletion(-)
 create mode 100755 bin/cancel_expired_customers

diff --git a/Gemfile b/Gemfile
index 310c23f..ca692e2 100644
--- a/Gemfile
+++ b/Gemfile
@@ -5,12 +5,14 @@ source "https://rubygems.org"
gem "blather"
gem "braintree"
gem "dhall", ">= 0.5.3.fixed"
[message trimmed]

[PATCH cheogram 2/2] Allow direct message route to notify of removal 8 days ago

From Stephen Paul Weber to ~singpolyma/dev

In case the backend is removing the user for policy reasons, etc, allows us to
clear out the message route setting when the backend is no longer listening.
---
 Main.hs | 35 +++++++++++++++++++++++++----------
 1 file changed, 25 insertions(+), 10 deletions(-)

diff --git a/Main.hs b/Main.hs
index 8819e74..f5b21e4 100644
--- a/Main.hs
+++ b/Main.hs
@@ -356,6 +356,13 @@ mapBody f (m@Message { messagePayloads = payloads }) =
		) payloads
	}

[message trimmed]