~emersion/goguma-dev

page/join: display the number of users per channel v1 APPLIED

delthas: 1
 page/join: display the number of users per channel

 1 files changed, 11 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/goguma-dev/patches/37270/mbox | git am -3
Learn more about email & git

[PATCH] page/join: display the number of users per channel Export this patch

Can be useful to identify which channel has the most users, eg when
looking for the official support channel of a project.
---
 lib/page/join.dart | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/lib/page/join.dart b/lib/page/join.dart
index d74c4c2..1d65b62 100644
--- a/lib/page/join.dart
+++ b/lib/page/join.dart
@@ -219,8 +219,19 @@ class _JoinItem extends StatelessWidget {
		);

		if (action is _JoinChannelAction) {
			Widget? trailing;
			if(action.listReply.clients > 0) {
				trailing = Row(
					mainAxisSize: MainAxisSize.min,
					children: [
						Icon(Icons.person),
						Text('${action.listReply.clients}'),
					],
				);
			}
			return ListTile(
				leading: Icon(Icons.tag),
				trailing: trailing,
				title: title,
				subtitle: action.listReply.topic == '' ? null : Text(
					stripAnsiFormatting(action.listReply.topic),

base-commit: 7503ffdc2522b8023cf2b4c4431c344f216b1e58
-- 
2.17.1
Pushed, thanks!