-
nicoco
singpolyma, erm yeah matridge does not have "contacts" 😬
-
nicoco
singpolyma, I sent you an log as a MUC whisper here
-
nicoco
slidge sends: ```xml <field var="contacts" label="Contacts to add to the new group" type="list-multi"> <option label="xxx"> <value>xxx@telegram.slidge.im/slidge</value> </option> ```✎ -
nicoco
slidge sends: ```xml <field var="contacts" label="Contacts to add to the new group" type="list-multi"> <option label="xxx"> <value>xxx@telegram.slidge.im/slidge</value> </option> <!--other options --> <value /> <!-- no preselected value, maybe that's what's bad? --> </field> ``` ✏
-
nicoco
and cheogram replies with that empty `<value />` on top of the `option`s the user picked
-
nicoco
> Question..is it technically possible to show added or modified contact in telegram WhatsApp and discord sync contacts by the username ? For the moment only a number is given how many contacts have been added removed or modified no. that would probably be noisy but it does sound relatively easy to implement, open a feature request and we can discuss it there ↺
-
c3p0
nicoco pushed 10 commit(s) to slidge - chore(deps): prevent implicit major version bumps (nicoco) - chore(deps): remove pickle-secure (nicoco) - refactor: cleanup deprecated "pickle-secure" feature (nicoco) - refactor(xep): remove XEP-0356 < 0.4 support (nicoco) - imprv(adhoc): return 'forbidden' instead of empty adhoc command list (nicoco) https://codeberg.org/slidge/slidge/compare/3c69945ca..f9bfc7487
-
mathieui
nicoco: it's too early to code, go back to sleep!
-
nicoco
but you're up!
-
nicoco
try being 40 and having your brain decide "yup it's 5, no more sleeping for you now"
-
mathieui
Had a train to go to work at 6:45 anyway
-
nicoco
ughhh work, yuk
-
mathieui
Can't argue with that
-
nicoco
💪 1there's also this "having kids" thing and thinking in bed "well I can probably code a little if I get up before them" ^^✎ -
nicoco
there's also this "having kids" thing and thinking in bed "well I can probably code a little today if I get up before them" ^^ ✏
😁 1 -
ThUnD3r|Gr33n
https://codeberg.org/slidge/slidge/issues/45
👍 1 -
ThUnD3r|Gr33n
Here you go nicoco
-
ThUnD3r|Gr33n
Deadline : 24 hours
-
ThUnD3r|Gr33n
😁🤣
-
nicoco
Sure thing, you a slidge premium subscriber after all!
-
ThUnD3r|Gr33n
Fait enough
-
ThUnD3r|Gr33n
I see some nice issues ... Waiting for it 🤞😎
-
singpolyma
nicoco: ok, so I agree this is a bug in cheogram android and am working on a fix, but also I think including a value that isn't part of your options is highly unusual vs just including no value
-
singpolyma
https://s3.sr.ht/builds.sr.ht/artifacts/~singpolyma/1434233/c522595aa9400b56/cheogram.apk should fix it
-
deuill
Whelp, I just got added to a WhatsApp Community, I guess I really need to implement support now
-
deuill
Likely will need to mark certain groups as belonging to a Community so that they're not returned alongside other groups -- wondering how easy it will be to persist this info in the DB
-
raver
> there's also this "having kids" thing and thinking in bed "well I can probably code a little today if I get up before them" ^^ 😁 ↺
-
nicoco
deuill: either implement or change friends, your call
-
deuill
> assuming I have friends
-
nicoco
singpolyma, this is probablmaybe slixmpp's default behaviour
-
nicoco
> > assuming I have friends I have seen your übersocialite game my friend. Don't pretend! ↺
-
deuill
nicoco, do we have an example of a `Group` (or similar) sub-class defining additional data to be stored in DB?
-
deuill
I seem to remember you had a JSON blob/key-value field defined in the schema
-
deuill
Hmmm the `extra_attributes` stuff, if I understand correctly.
-
deuill
Oh hmmm seems like this might be the thing: https://codeberg.org/slidge/slidgram/src/commit/3b8506f4b2c80c924420009195af0b9bcc7eab68/slidgram/group.py#L406-L410
-
nicoco
yes this is it. why do you not want them to be among other groups?
-
nicoco
you can add_to_bookmarks(autojoin=False)
-
nicoco
and maybe set MucType.CHANNEL?
-
deuill
Communities are processed as "special" WhatsApp groups, with sub-groups (a General one and an Announcements one, by default); sending a message to the Community "group" returns a 401, so these should never be added to bookmarks. Similarly, Announcement groups should have the Community name as a prefix, but don't by default.
-
deuill
So I want to keep track of Communities separately and potentially automatically prepend the Community name for some groups.
-
deuill
AFAICT Communities are like Discord Servers, only they exist within the present ontology in weird ways.
-
Peter
Dunno if that's a good description, they lack voice channels afaik.
-
nicoco
I'm almost sleeping so maybe what I'm about to say is nonsense but I don't see why bookmarks and not sending messages in it are related?
-
nicoco
To bridge the "not having voice" part, you want to do `(await muc.get_user_participant().role = "visitor")`, example https://codeberg.org/slidge/slidgram/src/branch/main/slidgram/group.py#L120-L122
-
Peter
Maybe the user might not know that they're not supposed to send a message there so they do it anyway and then Slidge might want to suck it up and tell them that they suck instead of trying to deliver it and making you look sus to the WhatsApp servers.
-
nicoco
hmmm maybe Peter, but re-reading what deuill wrote I actually think the community itself is useless and the "announcement" group is a different group anyway
-
nicoco
deuill: we need some thing in slidge core for "discord servers", "mattermost teams", "whatsapp communities", and "matrix something (forgot their terminology)"
-
Peter
Ah yeah Slidge was creating some big fat groups with LIDs inside which you couldn't join without your client crashing as they had like 200000 members in the muc.
-
nicoco
also llarma told me that we should do something to expose these "spaces" and spec it, it won't cover the ultimate "spaces XEP" that everyone wants but no one writes, but it would be a start…
-
Peter
The AI?
-
nicoco
no, the dino dev
-
nicoco
lol
-
Peter
Okay sorry.
-
nicoco
single L I guess
-
nicoco
I should sleep now, mixing larma with llama, not good ^^
-
Peter
Sleep well and have nice dreams!
-
Kris
yeah, the spaces space in XMPP is sadly a bit short on people actually proposing something concrete
- Peter considers asking Digga about it.