Recent activity

[PATCH cheogram] Add OOB fallbacks unconditionally for incoming 2 days ago

From Stephen Paul Weber to ~singpolyma/dev

---
 Main.hs | 63 +++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 39 insertions(+), 24 deletions(-)

diff --git a/Main.hs b/Main.hs
index b85ae10..8f208f6 100644
--- a/Main.hs
+++ b/Main.hs
@@ -664,7 +664,7 @@ data ComponentContext = ComponentContext {
	smsJid :: Maybe JID,
	registrationJids :: [JID],
	adhocBotMessage :: Message -> STM (),
	ctxCacheOOB :: Bool -> Message -> UIO Message,
	ctxCacheOOB :: (XMPP.Message -> Maybe XMPP.Message) -> Bool -> Message -> UIO Message,
[message trimmed]

[PATCH sgx-jmp 2/2] Put CDRs behind a feature flag 3 days ago

From Stephen Paul Weber to ~singpolyma/dev

---
 lib/customer.rb | 2 +-
 sgx_jmp.rb      | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/customer.rb b/lib/customer.rb
index c490522..626be27 100644
--- a/lib/customer.rb
+++ b/lib/customer.rb
@@ -43,7 +43,7 @@ class Customer
		klass.new(
			customer_id, jid,
			plan: CustomerPlan.extract(customer_id, **kwargs),
			**kwargs.slice(:balance, :sgx, :tndetails, *keys)
[message trimmed]

[PATCH sgx-jmp 1/2] Store feature flags on user for limiting commands, etc 3 days ago

From Stephen Paul Weber to ~singpolyma/dev

---
 .rubocop.yml         |  2 +-
 lib/command_list.rb  |  2 +-
 lib/customer.rb      |  4 +++-
 lib/customer_repo.rb | 12 ++++++++----
 test/test_helper.rb  |  4 ++++
 5 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/.rubocop.yml b/.rubocop.yml
index f46799f..f3d7110 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -24,7 +24,7 @@ Metrics/AbcSize:
    - test/*
[message trimmed]

Re: [PATCH sgx-jmp v2] Changed 'Invite' to 'Referral' where it displays ot the end user. 3 days ago

From Stephen Paul Weber to ~singpolyma/dev

Somebody claiming to be root21 wrote:
>---
> forms/admin_add_invites.rb     | 4 ++--
> forms/admin_menu.rb            | 2 +-
> forms/registration/activate.rb | 4 ++--
> lib/registration.rb            | 4 ++--
> sgx_jmp.rb                     | 4 ++--
> 5 files changed, 9 insertions(+), 9 deletions(-)
>
>diff --git a/forms/admin_add_invites.rb b/forms/admin_add_invites.rb
>index dd28687..377a9a1 100644
>--- a/forms/admin_add_invites.rb
>+++ b/forms/admin_add_invites.rb
>@@ -1,10 +1,10 @@

[PATCH sgx-jmp] Only try to catch up possible renewals if expired less than 3 months 3 days ago

From Stephen Paul Weber to ~singpolyma/dev

---
 sgx_jmp.rb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sgx_jmp.rb b/sgx_jmp.rb
index 7899860..7b492cb 100644
--- a/sgx_jmp.rb
+++ b/sgx_jmp.rb
@@ -202,7 +202,10 @@ def catchup_notify_possible_renewal(db)
	db.query(<<~SQL).each do |c|
		SELECT customer_id
		FROM customer_plans INNER JOIN balances USING (customer_id)
		WHERE expires_at < LOCALTIMESTAMP AND balance >= 5
		WHERE
[message trimmed]

[PATCH cheogram-smtp 2/2] Convert MM4 mails to Bandwidth MMS JSON and send to a webhook 7 days ago

From Stephen Paul Weber to ~singpolyma/dev

---
 MMS.hs              | 91 +++++++++++++++++++++++++++++++++++++++++++++
 cheogram-smtp.cabal |  9 ++++-
 incoming-mms.hs     | 38 +++++++++++++++++++
 3 files changed, 137 insertions(+), 1 deletion(-)
 create mode 100644 MMS.hs
 create mode 100644 incoming-mms.hs

diff --git a/MMS.hs b/MMS.hs
new file mode 100644
index 0000000..14bef0d
--- /dev/null
+++ b/MMS.hs
@@ -0,0 +1,91 @@
[message trimmed]

[PATCH cheogram-smtp 1/2] Expose some of the email helpers for use elsewhere 7 days ago

From Stephen Paul Weber to ~singpolyma/dev

---
 Email.hs | 72 ++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 44 insertions(+), 28 deletions(-)

diff --git a/Email.hs b/Email.hs
index 8fbc6c9..d02cd0c 100644
--- a/Email.hs
+++ b/Email.hs
@@ -104,6 +104,26 @@ getAttachmentsAndMedia = MIME.entities . filtered (\part ->
		(view (MIME.transferDecoded' . _Right . MIME.body))
	)

oneAttachment ::
	   Text
[message trimmed]

[PATCH cheogram-android] Show table as list of cards when too wide 9 days ago

From Stephen Paul Weber to ~singpolyma/dev

If a table has too many columns then showing them all next to each other is
awful and squishy.  So instead, when too wide based on current screen size, show
as a list of cards.  The cards are themselves a grid of two columns so that they
aren't too giantly tall, and they re-use the result field rendering for each
field in that card.

Changes on redraw such that rotating to landscape can take you to table view and
rotating back to portrait can take you back to list of cards.
---
 src/cheogram/res/layout/command_item_card.xml |  22 ++++
 .../conversations/entities/Conversation.java  | 101 +++++++++++++++---
 2 files changed, 108 insertions(+), 15 deletions(-)
 create mode 100644 src/cheogram/res/layout/command_item_card.xml
[message trimmed]

[PATCH cheogram-android v2 3/3] Allow saving inline images as sticker by long press 9 days ago

From Stephen Paul Weber to ~singpolyma/dev

---
 .../siacs/conversations/entities/Message.java | 18 +++++++++++
 .../ui/ConversationFragment.java              | 15 ++++++++-
 .../ui/adapter/MessageAdapter.java            | 32 ++++++++++++++++++-
 3 files changed, 63 insertions(+), 2 deletions(-)

diff --git a/src/main/java/eu/siacs/conversations/entities/Message.java b/src/main/java/eu/siacs/conversations/entities/Message.java
index 081c7f317..62e2001c9 100644
--- a/src/main/java/eu/siacs/conversations/entities/Message.java
+++ b/src/main/java/eu/siacs/conversations/entities/Message.java
@@ -7,9 +7,13 @@ import android.graphics.Color;
import android.os.Build;
import android.text.Html;
import android.text.SpannableStringBuilder;
[message trimmed]

[PATCH cheogram-android v2 2/3] Allow changing sticker directory 9 days ago

From Stephen Paul Weber to ~singpolyma/dev

---
 .../siacs/conversations/ui/SettingsActivity.java  | 15 +++++++++++++++
 src/main/res/xml/preferences.xml                  |  5 +++++
 2 files changed, 20 insertions(+)

diff --git a/src/main/java/eu/siacs/conversations/ui/SettingsActivity.java b/src/main/java/eu/siacs/conversations/ui/SettingsActivity.java
index 998693f85..93a0c11fc 100644
--- a/src/main/java/eu/siacs/conversations/ui/SettingsActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/SettingsActivity.java
@@ -1,6 +1,7 @@
package eu.siacs.conversations.ui;

import android.app.FragmentManager;
import android.content.Context;
[message trimmed]