freemangordon | Wizzup: it seems I am missing the point, all the time I was trying to find a way to *start* group chat, while you look for a way to somehow receive message for chats/rooms/groups the user has not joined to or somesuch | 09:09 |
---|---|---|
freemangordon | so, could you please explain the usecase (in terms of IRC, for example) | 09:09 |
Wizzup | freemangordon: is not about groups that the user hasn't joined | 10:11 |
Wizzup | freemangordon: but like, in xmpp, you are persistently in channels | 10:11 |
Wizzup | as in slack | 10:11 |
Wizzup | and others protocols | 10:11 |
Wizzup | so you need to be able to get the list of channels / rooms you're in | 10:11 |
freemangordon | hmm | 11:47 |
Wizzup | I think telepathy does send some of this info over, like your contacts, buddies, etc | 11:51 |
freemangordon | wait | 11:52 |
freemangordon | see https://pastebin.com/rgWeh4HQ | 11:52 |
freemangordon | this is fremantle MessagingUI.client | 11:53 |
freemangordon | so, it observes handle types 0, 1 and 2 | 11:53 |
freemangordon | the same does Empathy.Chat.client | 11:54 |
freemangordon | in leste | 11:54 |
freemangordon | https://pastebin.com/5MYE9xAS | 11:55 |
Wizzup | hmm I am not sure if we ever made this file for conversations | 11:58 |
freemangordon | I think we must | 11:59 |
freemangordon | otherwise tp does not know what to call | 11:59 |
Wizzup | what are these numbers? | 11:59 |
freemangordon | trying to fin, but I guess this https://telepathy.freedesktop.org/doc/telepathy-glib/telepathy-glib-enums.html#TpHandleType | 11:59 |
freemangordon | this is for TargetHandleType | 12:00 |
freemangordon | not 100%sure though, still trying to find the docs | 12:01 |
Wizzup | I can make this file in a bit | 12:01 |
freemangordon | sure, but maybe it somehow ionteracts with the code | 12:01 |
freemangordon | also, the name must be the dbus iface we expose, IIUC | 12:02 |
Wizzup | maybe I'm just not doing it right in conversations tp wise | 12:02 |
Wizzup | It's so not clear how to do this in any case | 12:02 |
freemangordon | mhm | 12:02 |
freemangordon | lemme try to find how | 12:02 |
Wizzup | we currently expose a handler called "myhandler", but locally I have changed the name already | 12:02 |
Wizzup | please do check src/lib/tp.cpp in conversations | 12:03 |
freemangordon | I did | 12:03 |
Wizzup | I also added Tp::ChannelClassSpec::textChatroom to the handler creation | 12:03 |
freemangordon | but honestly not sure what it is suppose to do | 12:03 |
Wizzup | but that didn't make a difference | 12:03 |
Wizzup | fwiw | 12:03 |
Wizzup | well we need a handler to get anything at all | 12:03 |
Wizzup | but also to approve channel joins, etc | 12:03 |
freemangordon | like, it looks to me like a mix of functionalities | 12:03 |
Wizzup | telepathy-qt or the handler? | 12:03 |
freemangordon | src/lib/tp.cpp | 12:04 |
freemangordon | ok, lemme try to find how are those handlers registered with tp-glib, then will try to map to qt | 12:04 |
Wizzup | ok | 12:04 |
Wizzup | so the tp code in conversations registers a handler and then listens for incoming messages (logs them), and it can send messages back | 12:05 |
Wizzup | that's about it currently | 12:05 |
Wizzup | the logging part I plan to split out later into a separate component | 12:05 |
freemangordon | https://telepathy.freedesktop.org/doc/book/sect.channel-dispatcher.clients.html | 12:05 |
Wizzup | (process, really) | 12:05 |
freemangordon | "An additional .client file is used by the Channel Dispatcher to look up properties such as what interfaces the client supports and what channels its interested in (see Section 4.1.2 ― .client File below). " | 12:06 |
Wizzup | ah.. damn. ok | 12:06 |
freemangordon | *what channels its interested in* | 12:06 |
freemangordon | :) | 12:06 |
Wizzup | I am not sure if this will do the trick but it's definitely something missing | 12:07 |
Wizzup | I guess we will also need this for sphone later then, for the tp module | 12:07 |
freemangordon | well, at least it worths reading | 12:08 |
Wizzup | yes | 12:09 |
freemangordon | Wizzup: https://telepathy.freedesktop.org/doc/telepathy-qt/a08056.html | 12:12 |
freemangordon | here https://github.com/maemo-leste/conversations/blob/master/src/lib/tp.cpp#L18 | 12:12 |
freemangordon | I think you should add 2 more classes here | 12:12 |
freemangordon | like textChatroom() maybe | 12:13 |
Wizzup | yeah, so I had that locally | 12:13 |
Wizzup | and that didn't make a difference | 12:13 |
freemangordon | hmm | 12:13 |
Wizzup | but maybe the .client file is also necessary | 12:13 |
freemangordon | could be | 12:13 |
Wizzup | btw, I have a jabber server for myself that also works with fremantle jabber | 12:14 |
Wizzup | could be useful for testing somehow | 12:14 |
freemangordon | mhm | 12:14 |
freemangordon | btw, you may start telepathy-gabble with traces enabled, it will provide hints why handlers/observers are not called | 12:14 |
freemangordon | GABBLE_PRESIST=1 etc (IIRC) | 12:15 |
Wizzup | ok | 12:15 |
Wizzup | let me take it one step at a time, first the file | 12:15 |
freemangordon | ok | 12:16 |
Wizzup | glad you're back, btw :D | 12:17 |
freemangordon | kinda :) | 12:17 |
Wizzup | sure | 12:17 |
freemangordon | but yeah, will try to fully get back ASAP | 12:17 |
Wizzup | :) | 12:18 |
freemangordon | btw, for the logging part, see empathy Logger | 12:18 |
Wizzup | src link? | 12:21 |
freemangordon | trying to find | 12:21 |
Wizzup | I did see a logger interface for telepathy, but at least telepathy-logger didn't seem like what we wanted | 12:24 |
Wizzup | freemangordon: wait which empathy file did you paste? | 12:25 |
freemangordon | Empathy.Chat.client | 12:26 |
freemangordon | Loger.client comes with telepathy-logger | 12:26 |
freemangordon | but, it may serve as an example I guess | 12:26 |
Wizzup | it contains less on my vm | 12:26 |
freemangordon | like what? | 12:27 |
Wizzup | the whole observerfilter is not there on my vm | 12:27 |
Wizzup | http://dpaste.com/FPRRLTFD5 | 12:27 |
freemangordon | same here, maybe I made a mistake and pasted my ubuntu one | 12:28 |
* freemangordon checks | 12:28 | |
freemangordon | Wizzup: wait, observers are on fremantle | 12:29 |
freemangordon | MessagingUI.client | 12:29 |
freemangordon | this https://pastebin.com/rgWeh4HQ | 12:30 |
Wizzup | check | 12:30 |
Wizzup | yeah the ui also logs | 12:31 |
Wizzup | ok ty | 12:31 |
freemangordon | Wizzup: BTW, doing "new TelepathyAccount(acc)" for each account seems like an overkill to me | 12:32 |
freemangordon | why is that needed? | 12:32 |
freemangordon | this https://github.com/maemo-leste/conversations/blob/master/src/lib/tp.cpp#L34 | 12:33 |
Wizzup | freemangordon: this is needed to send messages | 12:34 |
Wizzup | afaik | 12:34 |
freemangordon | hmm | 12:34 |
freemangordon | I am not sure this is the case, but well, will see when we get to it | 12:35 |
Wizzup | not sure why it is overkill, the accountmanager makes them anyway | 12:35 |
Wizzup | yeah | 12:35 |
freemangordon | going afk, lunch | 12:35 |
Wizzup | *nod* | 12:37 |
Wizzup | well, I do have my own jabber server working fine with fremantle, even for calls and history fetching, so that's nice | 14:11 |
buZz | does jabber also do videocalls? | 17:21 |
buZz | oh, i guess it does | 17:23 |
buZz | nice | 17:23 |
sixwheeledbeast | xmpp can support voice and video | 17:23 |
Wizzup | yeah they work on fremantle | 17:25 |
buZz | very nice | 17:26 |
buZz | fremantle on d4? :D :D :D | 17:26 |
buZz | hehe | 17:26 |
Wizzup | no, n900 | 17:27 |
buZz | alright | 17:45 |
Wizzup | still struggling with telepathy and channels | 17:47 |
bencoh | IM with Conversation felt like nightmare to me, but ... ymmv | 18:01 |
bencoh | I mean, group chat | 18:01 |
Wizzup | what parts in particular? | 18:02 |
bencoh | mostly the fact that closing a chat window meant leaving the group | 18:07 |
bencoh | (or channel) | 18:07 |
Wizzup | right | 18:07 |
bencoh | (afair at least) | 18:07 |
buZz | i noticed conversation now can even open multiple windows of the same chat, kinda annoying :P | 18:10 |
buZz | also it doesnt give full history, vs sphone's sms history | 18:11 |
Wizzup | buZz: I haven't seen it open multiple windows of the same chat | 18:14 |
Wizzup | where does this happen? | 18:14 |
Wizzup | maybe this is a qt bug where the windows do not stack | 18:14 |
Wizzup | in any case it's not that important if the tp stuff doesn't work the way it should ;) | 18:15 |
buZz | Wizzup: just tap it a bunch of times | 18:15 |
buZz | only 1 window has arrow back, the others have the close X, on topright | 18:16 |
dsc_ | conversations is still in development | 18:17 |
bencoh | (I was referring to fremantle's Conversations, btw, not leste's one) | 18:29 |
sixwheeledbeast | the leaving groups on close was obvious with the IRC plugin. | 18:31 |
buZz | ah | 18:33 |
_uvos_ | Wizzup: log still dosent work | 18:46 |
bencoh | sixwheeledbeast: indeed | 18:50 |
Wizzup | _uvos_: ah shit | 18:50 |
Wizzup | lel: ping | 18:52 |
Wizzup | test | 18:52 |
sixwheeledbeast | I think it was only the plugins affected tho, SMS or IM isn't a issue to close? | 18:52 |
Wizzup | lel: ping2 | 18:53 |
Wizzup | ok | 18:53 |
DavidTalmage | Is Maemo Leste 20220618 known to work on the N900? When mine tries to boot from it (on an SD card), it thinks for a little while then it presents the U-Boot menu. | 19:19 |
DavidTalmage | Is there a way to turn on the display backlight in U-Boot? | 19:20 |
Wizzup | did you select to boot it from the uboot menu? | 19:22 |
Wizzup | the display backlight should be on, unless you started the n900 by plugging in the usb cable | 19:22 |
DavidTalmage | Yes, I selected the boot from SD option in the uboot menu. | 19:23 |
DavidTalmage | I started the N900 by plugging in the USB cable. Thanks for the clue! | 19:23 |
DavidTalmage | I think maybe I see a problem. On the dim display after first boot, it says "unable to read bootmenu.cf" or something like that. | 19:26 |
Wizzup | latest image you say? | 19:28 |
DavidTalmage | yes. I haven't tried other images. | 19:29 |
Wizzup | freemangordon: so even with empathy it (1) doesn't open existing chat rooms (2) doesn't know about existing chat rooms unless I add them | 20:03 |
Wizzup | if I join the channel manually through TP then it does work it looks like | 20:11 |
DavidTalmage | @Wizzup I just now tried 20220611. It won't boot, either. The N900 keeps going back to the U-Boo menu | 20:12 |
DavidTalmage | U-Boot | 20:12 |
DavidTalmage | It's as if U-Boot doesn't know where to look for the boot partitiion | 20:13 |
Wizzup | freemangordon: well it worked once in empathy | 20:14 |
Wizzup | DavidTalmage: weird... I can try tomorrow on my n900 | 20:14 |
DavidTalmage | Thanks. | 20:16 |
DavidTalmage | Is there a u-boot command I can type to make the N900 boot from the sd card? | 20:17 |
Wizzup | 'run sdboot' | 20:18 |
Wizzup | DavidTalmage: how did you dd the image, btw? | 20:18 |
DavidTalmage | the screen went black for a minute. Then it rebooted. Now I see the u-boot menu again. | 20:19 |
Wizzup | DavidTalmage: how did you copy the image to the sd card? | 20:21 |
DavidTalmage | sudo dd status=progress bs=1M if=maemo-leste-1.0-armhf-n900-20220611.img of=/dev/sdc | 20:22 |
Wizzup | ok, so you did extract the xz part then :) | 20:23 |
Wizzup | as in, you did un-xz'd | 20:23 |
DavidTalmage | Yes. `unxz maemo-leste-1.0-armhf-n900-20220611.img.xz ` | 20:24 |
Wizzup | I'll test tomorrow | 20:28 |
Wizzup | bencoh: so I imagine this behaviour (leaving chat upon closing window) is likely related to what I am seeing | 20:31 |
Wizzup | bencoh: I am not even sure if TP supports persistently joining rooms | 20:31 |
Wizzup | which is kind of weird since xmpp definitely does | 20:31 |
Wizzup | bencoh: looks like empathy is the same | 20:45 |
Wizzup | close window == lose chat | 20:46 |
Wizzup | bencoh: so I suppose we'd have to keep track of channels ourselves | 21:09 |
Wizzup | freemangordon: | 21:13 |
Wizzup | 21:12 -!- wizzupvm [~user@78-3-105-124.adsl.net.t-com.hr] has joined ##maemotest | 21:13 |
Wizzup | 21:12 < wizzupvm> Maemo conversations says hi | 21:13 |
Wizzup | that's something :) | 21:13 |
Wizzup | dsc_: ^^ | 21:13 |
dsc_ | pretty cool | 21:13 |
dsc_ | but does it blend | 21:13 |
Wizzup | there's a lot more to do for sure, but it's something | 21:14 |
dsc_ | chatgroups imply a whole range of features, incl. keeping channel roster up2date (people leaving, entering), being able to PM specific people inside a groupchat, you yourself can join/leave specific groups, and this is all multi-protocol | 21:16 |
Wizzup | the roster you can also query, but yeah there are signals for it | 21:17 |
Wizzup | join/leave is functional it seems, just doesn't work the way I thought it would | 21:17 |
dsc_ | this has implications for the amount of front-end work required | 21:17 |
sicelo | DavidTalmage: tried a different image then? | 21:33 |
DavidTalmage | Yes. Same result. | 21:33 |
DavidTalmage | I wonder if there is something wrong with my u-boot | 21:34 |
sicelo | Weird. I'll see if I can find my spare SD card and test. | 21:34 |
sicelo | I doubt it's u-boot. You can still boot Fremantle with it (u-boot)? | 21:35 |
DavidTalmage | No, I can't. | 21:35 |
sice|o | that's a problem. are you able to find out why you can't boot Fremantle with u-boot? | 21:39 |
sice|o | https://leste.maemo.org/Nokia_N900#Quick .. try steps 1-4 from that link. that *should* get you to a booted Maemo Leste environment, unless there are other issues | 21:41 |
DavidTalmage | so far, no. | 21:51 |
DavidTalmage | The n900 keeps rebooting into u-boot. | 21:51 |
sice|o | even using that link, i.e. via 0xFFFF? | 21:53 |
DavidTalmage | yes | 21:54 |
DavidTalmage | dmesg tells me that it found the N900. | 21:55 |
sice|o | then your SD card is suspect. perhaps try a different SD card | 21:55 |
DavidTalmage | I've tried two different sd cards. | 21:56 |
DavidTalmage | What about the battery? | 21:56 |
DavidTalmage | Must the n900 have a working battery? | 21:56 |
DavidTalmage | I don't think the one it has is accepting a charge any more. | 21:56 |
sice|o | yes, you do need it :-) | 21:57 |
sice|o | keep the USB connected ... might be enough to supply power to the device | 21:57 |
DavidTalmage | I'm going to order a new battery right now. | 21:58 |
DavidTalmage | I'll return with the results. It may be a few days. | 21:59 |
Wizzup | maybe leave the battery to charge over night to a wall charger | 21:59 |
DavidTalmage | Thank you @Wizzup and @sice|o for helping me. | 21:59 |
bencoh | Wizzup: yeah, although I don't really know what this implies with telepathy | 22:16 |
Wizzup | I think it'll still be manageable | 22:19 |
Wizzup | freemangordon: ok yeah so there's some more handleChannels stuff to be done | 22:49 |
Wizzup | freemangordon: but I made some progress at least | 22:49 |
Wizzup | freemangordon: amongst other things empathy calls tp_channel_join_async | 23:28 |
Wizzup | I can't find that yet in telepathyqt | 23:28 |
Wizzup | hm, it seems to call addmembers on the channel to add itself | 23:31 |
Wizzup | maybe I can use this https://telepathy.freedesktop.org/doc/telepathy-qt/a08112.html#acc945279bd4566ffb4ba8c0f904e50b7 | 23:45 |
Wizzup | yup that calls addMembers | 23:46 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!