-
kek
Is it possible to convert Gajim to Java? the best programing language?
-
luca
Enterprise ready ™️
-
cal0pteryx
No, impossible
-
julian
The DivestOS groups restart quite often. Realized that gajim didn't prompt me a reconnect, like conversation did
-
meson
> and this would be more like migration stuff, you dont need to use the storage methods would I add the migration method in migration.py and raise the db version on success to flag that it's completed? ↺
-
lovetox
yes
-
based
> Is it possible to convert Gajim to Java? the best programing language? write once, nullpointerexception everywhere
-
meson
> yes Great, I'm getting there :)
-
Anon Ymous
> The DivestOS groups restart quite often. > Realized that gajim didn't prompt me a reconnect, like conversation did They reboot their server every 24h. It's a pain for Movim, too, doesn't handle it correctly at all. ↺
-
meson
lovetox, filling the table in principle now works. a few questions: what is the date entry for: date received? hash something I need to calculate and fill in? if so, which algo? descr: I guess this means description and can be left blank and is meant later for a caption in the preview? state: ? ft_source, ft_source_urldata: where do I get the data for those, if there are any?
-
lovetox
meson as said, this is a table for the filetransfer xep
-
lovetox
https://xmpp.org/extensions/xep-0446.html
-
meson
ah sorry, yeah, you said that.
-
meson
that means I can ignores those now
-
lovetox
i would fill urldata with the url
-
lovetox
i guess you try to fake oob url beeing a filetransfer?
-
meson
what do you mean by fake? but yes I've blindly assuemed the oob url is the url of a filetransfer
-
lovetox
its not a xep 447 filetransfer
-
lovetox
thats what the table is intended for
-
lovetox
you are trying to insert messages with a oob url, i would call that faking
-
meson
ah, you mean the ft_source_urldata table
-
lovetox
no all tables
-
meson
alright, but faking for now is okay?
-
meson
before I go on
-
lovetox
depends on what you try to do
-
lovetox
the media browser will only look at the filetransfer table?
-
meson
I would say so
-
meson
filetransfer table and messages table for jids etc
-
lovetox
yeah then lets try it, you will just have no information for oob urls
-
lovetox
no hash, no metadata etc
-
lovetox
also you need to find the file on the disk or not? before you put it into the table
-
meson
at least for the "migrated" part.
-
meson
> also you need to find the file on the disk or not? before you put it into the table already do that ↺
-
meson
at least for images (I have not yet considered any other media types though)
-
meson
orig_path, thumb_path = get_image_paths(message.oob[0].url, urlparts, size, orig_dir, thumb_dir)✎ -
meson
``` orig_path, thumb_path = get_image_paths(message.oob[0].url, urlparts, size, orig_dir, thumb_dir) ``` ✏
-
meson
and then of course I check whether they exist
-
meson
> yeah then lets try it, you will just have no information for oob urls but is is that any problem? ↺
-
lovetox
no i dont think so, none of these fields are mandatory
-
meson
perfect, I will "finish" this part tomorrow. good nite!
-
lovetox
good night