libera/#maemo-leste/ Monday, 2024-06-10

freemangordonWizzup: I am starting to think it is not tp plugins that has to be fixed, but rather conversations does not properly ack incomming messages07:20
freemangordonas I see the same issue with tp-haze and FB07:20
freemangordonbut yeah, has to debug that07:20
freemangordondsc_: does not seem to work for haze/FB07:39
freemangordonI think I know what happens, but not how to properly fix it :)07:40
freemangordonrecently, I implemented chat "seen" support in haze, which relies on chat state. And it does not make messages as seen until chat state is "active" or "typing" etc07:41
freemangordons/make/mark07:41
freemangordondsc_: I don;t think your 'duplicates' fix is proper - why do you ignore scrollback messages only?07:43
freemangordonduplicated messages come as new, at least from haze07:43
freemangordonhmm, no idea how to properly fix that07:44
* freemangordon wonders if we shall move to pidgin 308:02
arno11freemangordon: hi, i'm a bit confused: you receive duplicate msgs from haze/FB ?08:03
freemangordonyes08:03
freemangordonwhat happens is:08:03
freemangordon1. couple of messages arrive from FB08:03
freemangordon2. those are send from haze to UI and UI acks them08:04
freemangordon3. internet connection reconnects08:04
freemangordonmessages from (1) are received again, as they were not marked as read08:04
freemangordonpidgin has no concept of marking messages as received08:05
freemangordonOTOH, we cannot mark messages as read simply because they were put in the database08:05
arno11ok08:06
freemangordonand purple 2.x has no concept of message id or anything, so we cannot send "received" receipt per message08:11
freemangordonwhile purple 3.x has08:11
freemangordonit supports message ids and whatnot08:11
freemangordonso I am tempted to try to port haze to libpurple 308:12
freemangordonthough it is way easier to teach UI to just ignore those08:20
arno11indeed, sounds an easier way08:25
Cat_freemangordon i managed to dd the image to the sd card but i dont know how to boot from it09:36
Cat_it seems that samsung  devices deprecated booting from sdcards and instead support only booting from recovery/system partitions.09:38
Cat_Wizzup thanks i havent tried the image builder yet and i already have the phone running postmarketOS with 6.8.1 kernel10:29
Wizzupfreemangordon: I do not think libpurple3 is ready yet, is it?10:29
WizzupI am in the pidgin channel and the devs themselves do not seem to be using it yet even10:30
WizzupCat_: yeah so try to look at what postmarket os does then, how it boots the sd card and such10:31
Wizzupleste just needs you to load the kernel and a sd card or partition to install leste to10:31
Cat_I think i might be able to boot it from the recovery partition10:31
Cat_if the sdcard option doesnt work10:32
Wizzupwell, what does pmos do ?10:32
Cat_i have no idea, it boots from the internal memory10:33
Wizzupthey do not have some bootloader?10:33
Cat_They boot the OS from the recovery, https://wiki.postmarketos.org/wiki/Installation_from_recovery_mode this is what i followed10:35
Wizzupok, this kinds of hits the boundaries of my android knowledge, so it will take some investigation to figure out how to do it10:39
freemangordonWizzup: didn't we have some pmos guys in the channel?11:41
freemangordonsicelo: ^^^11:41
uvos__They dont boot from recovery11:58
uvos__recovery zips are simply scripts that are executed by the recovery that can do thinks like write new images to partitions11:58
uvos__android bootloaders boot from android boot imgaes off of the boot partition only11:59
uvos__android boot images are a special but well documented/tooled format which packages the kernel, somtimes dts, cdmline etc12:00
uvos__you must simply create a boot image for your device with the kernel source of your device and androids tools and set the cmdline to something apropriate to boot from the sdcard12:01
uvos__flashing your boot.img is easiest via fastboot, for simple cases this makes more sense than to go the whole update.zip route12:02
uvos__the boot.img format is described here https://source.android.com/docs/core/architecture/bootloader/boot-image-header12:03
uvos__the tool to create a boot.img from its componatnts is https://android.googlesource.com/platform/system/tools/mkbootimg/12:04
Cat_1@uvos__ thanks, ill look it up12:32
kivaIs osso-notes come available to Application Manager or would it be default in next images?14:34
freemangordonkiva: isn't it closed-source?16:30
sicelohttps://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/merge_requests/67217:58
siceloN900 booted off xkb-data.17:58
Wizzupmaybe just comment on it?18:09
Wizzupah you did18:09
Wizzupsicelo: maybe we can also mention adding the droid 418:10
Wizzupfreemangordon: like, if you port to libpurple3, then we would also need to upgrade all our current/existing libpurple2 plugins18:19
freemangordonWizzup: yeah, not a good option18:20
Wizzupunless I am mistaken and most are on libpurple3 (I don't think so)18:20
freemangordonI'll fix the UI18:22
Wizzuphm?18:23
freemangordonconversations18:26
freemangordonthis https://github.com/maemo-leste/conversations/commit/1015daacd3a278706cf167bf43f99ed0121e6fa618:26
freemangordonshall affect all messages, not scrollback only18:26
dsc_(y)18:28
dsc_im going to build a new conversations20:23
dsc_it fixes the message status icons in the overview20:54
dsc_as well as chat clearing functionality20:54
dsc_and some other fixes20:54
freemangordondsc_: https://github.com/maemo-leste/conversations/commit/1015daacd3a278706cf167bf43f99ed0121e6fa6#diff-87db68d7596ffb0dfea5735881430cc11e7a6c780e8de85a530e1654839077cdR47423:03
freemangordondo we really need channels.contains(channel_str) ?23:03
freemangordonI don;t get the logic here23:03
dsc_freemangordon: access by key after that line so checking for it23:04
freemangordonok, bu why do we return if that condition faile?23:04
freemangordon*fails23:04
freemangordonthat means that we ignore unconditionally any scrollback messages if there are no previous messages, no?23:05
dsc_let me think23:05
dsc_yes its wrong23:06
dsc_from first glance its wrong but its ok because this branch never hits23:07
dsc_either way it should be removed :P23:07
freemangordonwhat about https://pastebin.com/8FN8zLK423:07
freemangordonno, why this shall be removed?23:07
dsc_that paste is ok, yeah23:08
freemangordondsc_: I'll push what I think is a proper fix if you don;t object23:08
freemangordonif you object, I'll make a PR, just LMK23:09
dsc_sure :)23:09
freemangordonsure what? puch?23:09
dsc_i think in general you can just push what you want, 9/10 times its good23:09
freemangordonpush23:09
dsc_no need to ask23:09
freemangordonwell, it is you that maintains that, I prefer to have your opinion anyways23:10
dsc_true23:10
freemangordonbut ok23:10
dsc_freemangordon: did you try chat removal yet?23:11
dsc_maybe you have some test channels you can get rido f23:11
freemangordonyes, I did23:11
freemangordonhmm, wait23:11
freemangordonno, I tested chat clear, not removal23:12
Wizzuphow is it different23:12
freemangordonI am not sure what chat removal is supposed to do23:12
dsc_with clear the item stays in the overview, albeit empty23:12
freemangordonwell, but they are not tehre if you restart conversations23:12
dsc_with clear they will be23:13
dsc_else you wouldnt be able to open a chatwindow of a chat that does not contain any chats yet23:13
freemangordonnot really23:13
freemangordonif you want to open a chat, you can always do it from the contact23:13
freemangordonand that's the proper way imo23:14
Wizzupis this true for group chats?23:14
freemangordonno, I guess you have to select it from the (non-existing) list of groups23:15
freemangordonnot sure what fremantle conversation do23:15
freemangordonbut I would guess they remove group chats from the list23:15
freemangordondsc_: just tried 'delete chat'23:16
freemangordondid nothing23:16
freemangordonumm...23:16
freemangordondid nothing in the main window23:17
freemangordonthe chat remains there, along with the last message23:17
dsc_^ thats a removal of a groupchat23:17
dsc_freemangordon: what kind of chat did you remove?23:18
WizzupI think 'clear chat' should probably just delete it entirely and do the same as delete, I am not sure if we need to differentiate23:19
freemangordonИ агрее23:20
freemangordonoops23:20
freemangordonI agree23:20
dsc_that behavior would differ from most chat applications23:20
freemangordonso?23:21
dsc_clearing history versus deletion23:21
freemangordonwhat exactly is "deletion"?23:21
freemangordonleaving the chat?23:21
dsc_delete is clear + leave + remove from overview23:21
Wizzupimo if the messages are gone, why would it remain in the overview?23:22
freemangordonwhat doe sit mean to 'leave' a non-group chat?23:22
freemangordonWizzup: :nod:23:22
dsc_groupchats must be listed in the overview regardless of any associated rtcom db entries23:23
freemangordonwhy would they, unless set for auto-join?23:23
dsc_if there are no messages, it wouldnt be listed after a conversations restart23:23
freemangordonand that's ok23:23
freemangordonbut, it must be consistent23:24
freemangordonso, if after restart, empty conversations are not listed, why would they be listed after clear/delete?23:24
freemangordonthis is inconsistent23:24
dsc_no, they are listed23:25
freemangordonif empty?23:25
dsc_yes23:25
freemangordonok, but not peer-to-peer ones23:25
freemangordonso, I think taht at least person-to-person chats shall be removed from the list23:26
dsc_regarding p2p I'd have to check23:26
freemangordonfor group chats not sure23:26
freemangordonwell, now I have 2 separate chats with my GF :D23:26
dsc_how?23:26
freemangordonafter delete23:27
Wizzupdisconnect between rtcom db and our model I guess23:27
dsc_ugh :)23:27
Wizzupthis is also what happened/happens with sms23:27
Wizzup(let me upgrade and test)23:27
freemangordonthe old one remained and new one appeared :)23:27
WizzupI think it would be the most simple to stay in sync with rtcom db if we can somehow23:28
Wizzupmaybe we even reload overview screen from rtcom after a delete for example23:28
freemangordonyeah, restart does not help23:28
Wizzupoh23:28
Wizzupthat means there's something funny in the db then?23:28
freemangordonmhm23:28
dsc_Wizzup: we do all these things23:28
dsc_overview has 3 sources23:28
dsc_rtcom, tp, savedUserCfg23:28
Wizzupwhat does it get from tp?23:28
dsc_these questions are very hard for me to quickly answer, as it is quite a complex thing23:29
dsc_but in general, I had the situation where you joined a groupchat, exit conversations, open again, and it wouldnt show up23:29
dsc_I think it should always show the groupchat you are in23:30
dsc_regardless of offline/online state23:30
Wizzupmaybe there can be a special filter with all (open) group chats23:30
dsc_and regardless of any messages present in rtcom db23:30
Wizzup(not sure)23:30
dsc_so regarding clear/removal23:31
dsc_in irssi its:23:31
dsc_/clear23:31
dsc_/wc23:31
dsc_:D23:32
dsc_thats what I did23:32
dsc_we can decide to can one of those if people dont like it23:32
dsc_I think its quite intuitive23:32
dsc_e.g sometimes you want to get rid of some chat history but stay in the groupchat23:33
freemangordondsc_: I think group chats shall remain only if auto-join is enabled23:33
freemangordonright23:33
freemangordonso, for group chats maybe you just clear the history23:33
freemangordonbut in any case, you dont; close the chat window23:34
freemangordonand for p2p you remove it from the list23:34
freemangordon(and don't close the window)23:34
dsc_freemangordon: yeah, that makes sense23:35
Wizzupbtw /clear in irssi doesn't delete anything from logs you might have but yeah23:35
dsc_freemangordon: so if auto-join is disabled, and you press 'clear', you then close the chatwindow - you are still in the groupchat on Tp, but you wont see it in the overview, correct?23:38
freemangordonno, auto-join idea was bad23:39
Wizzupwhat do you mean?23:39
freemangordonjust leave group chats in the list and remove p2p ones23:39
Wizzupah ok that was in response to your idea23:40
freemangordonright23:40
dsc_ah ok23:40
freemangordonmaybe remove group chats when you leave the group23:40
freemangordonhmm, no23:40
dsc_if we keep groupchats in the overview, how do you get rid of them?23:40
freemangordononly remove group chats if you have left the group and clear the conversations :D23:41
freemangordons/conversations/history23:41
dsc_right23:41
freemangordoncan't think of anything better now23:41
Wizzupso this could rely just on rtcom and tp (for currently active channels) then23:42
freemangordonno, I think this will use the saved config too23:42
dsc_something tells me there will be situations where just relying on those 2 will yield confusing results23:42
freemangordonbecause on startup you have no other source for group chtas, no?23:42
dsc_right23:43
Wizzupthe config will tell you what to join23:43
Wizzupnot what to render23:43
freemangordonit will tell you to show empty group chats in the list23:43
Wizzupand if you've ever joined it before it will be in rtcom23:43
dsc_it wont23:44
freemangordonnot if you cleared the group chat before restart23:44
dsc_only on messages23:44
freemangordonmhm23:44
Wizzupok then23:44
WizzupI'd prefer to have as little source as possible, but if it's not realistically possible to avoid23:44
freemangordonso in order to be able to send a new message on a freshly cleared group chat, you need saved settings, IIUC23:44
Wizzupthis seems like a very nice thing I think, but ok :D23:45
dsc_freemangordon: yeah, and we cannot rely on Tp here because IIRC. it will only signal that it is part of channels if the account is online23:45
Wizzupseems like people could just rejoin23:45
freemangordonWizzup: unless we keep some weird row in rtcom23:45
freemangordonbut that'd be a hack I guess23:45
dsc_registering join events is very annoying for my limit/offset queries :P23:45
dsc_can do, but will be less performant23:45
freemangordonI can't comment there, you are the ones who know rtcom23:46
dsc_not just performance, just annoying23:47
dsc_so in general23:47
freemangordondsc_: please have a look to what I pushed and perhaps make a new release as there is a fix for a segfault on re-connect23:47
dsc_ok23:47
dsc_freemangordon: I would also like some info about your double-GF situation23:48
dsc_it stays after a restart, yes?23:48
freemangordonyes23:48
dsc_and its p2p23:48
freemangordonbut maybe it is a local issue23:48
freemangordonbecause I was missing part of p2p patch23:49
freemangordonoops23:49
dsc_ok23:49
freemangordonpart of event_id patch23:49
freemangordonno idea if that matters23:49
dsc_that patch is irrelevant23:49
dsc_to this problem23:49
dsc_I think23:49
freemangordonok23:49
freemangordonso, I deleted the chat and then sent a message23:50
freemangordonit was not sent23:50
freemangordonbut instead I got an error23:50
dsc_how did you send a new message? via contacts?23:50
freemangordonno, the chat window remained opened I think23:50
freemangordonlemme try to repro23:50
dsc_Wizzup: did you try chat clear/removal yet?23:52
freemangordondsc_: ok, delete a chat (that closes the chat window, but leaves the chat in the list), then click on the chat in the list23:53
freemangordonugh, wait23:54
freemangordonI have some issue with git merge it seems23:54
freemangordonlemme see what's going on23:54
dsc_delete should: clear rtcom by GROUP_UID, leave the channel (if groupchat), close the window, and remove it from the overview23:54
dsc_clear should: clear the chat and keep it in the overview23:55
freemangordondelete does not remove p2p chat from the overview here23:55
freemangordonok, no issue with git23:56
freemangordonit was an issue on my d4, where I was on a wring branch23:56
dsc_check23:56
dsc_and after a restart, the p2p chat is probably removed from the overview23:57
dsc_let me verify23:57
dsc_ok yep23:58
freemangordonno23:58
freemangordonnot here23:58
dsc_it should remove it from the overview, but it does not (for p2p)23:58
freemangordonas the failed message was put in the db23:58
freemangordonah, yeah23:58
dsc_for groupchats, current master works as I intended23:58
freemangordonok23:58
freemangordoncould be23:59

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!