Commit graph

3174 commits

Author SHA1 Message Date
Yann Leboulanger
bb8df6b540 remove old comment in caps.py 2008-06-12 15:16:36 +00:00
Brendan Taylor
82b30c0791 CapsCache: made docstring match the API, fixed minor bugs, added tests 2008-06-12 03:56:47 +00:00
Brendan Taylor
399233f293 detach sessions from controls when the highest priority contact changes.
this way we don't get multiple tabs when the remote user moves to another resource.
2008-06-10 02:58:17 +00:00
js
6fe9bee70b * Fixed a BT when receiving receipt request for offline messages.
* Fixed a BT when receiving receipt request for users not in roster.
2008-06-09 15:04:13 +00:00
tomk
6a15c9b9c9 initial cleanup of xmpppy perfomed, see #3260 2008-06-09 00:32:02 +00:00
Jean-Marie Traissard
f9c981df5d -Set General and Observer group directly in contact instance, instead of calculating it each time
-When creating self-contact contact instance, store it with group 'self_contact', so it never goes in General
-Make general group not be seen visible because of self contact even if self.regroup
-Remove the self contact instance itself too when WE deconnect or when IT deconnect, so we will
not see it as offline if refilling roster (regroup account for example)
2008-06-08 21:27:31 +00:00
js
593ed0c6d8 * Fix passing of message ID.
* Don't asnwer to receipt requests from users not in roster.
2008-06-08 15:51:55 +00:00
js
c2eb4b5a9f Completely remove OTR.
Sorry, it just wasn't maintainable. The problem is the current libotr
API. I'm sick of working around the strange libotr API, sick of getting
HTML messages, sick of losing messages. The final argument for
completely removing it was that we can't get the message ID of a sent
msg anymore - which we need. I tried to work around this as well, but
there seems to be no way to wait for a signal in glib the way I would
need it for the workaround (I wanted to emit a signal in inject_message
and then wait for it after the call to otr_message_fragment_and_send
so the signal can pass us the message id). And the last reason is that
we're heading towards a new release and thus want to stabilize the code,
thus don't have time to work around even more libotr API strangeness.
I will give feedback to the libotr developers, who are currently
planning a new API, so that we can hopefully see OTR support once again
as soon as libotr4 is released.

Kjell already announced that he will continue his branch:
https://code.launchpad.net/~afflux/gajim/otr

I really hope the libotr devs will provide a sane API with libotr4 so
we can integrate OTR support again.

Oh, and I added one more try/except block for OS X.
2008-06-08 15:27:05 +00:00
js
03d68c0d26 Be more specific on excepts. 2008-06-08 10:19:26 +00:00
js
8def8de5c7 Make Gajim work on OS X again.
Someone completely broke it by trying to port it to native GTK.
However, that person didn't only break it with X11 GTK, with
native GTK it wasn't working correctly either.
Fixed it by adding lots of try/except blocks. Someone definitely
deserves to be slaughtered for completely breaking it on OS X…
2008-06-07 20:42:15 +00:00
js
8fefd0ede4 Comment options. 2008-06-07 19:52:13 +00:00
js
a495d090c3 Initial XEP-0184 support.
TODO:
 * Implement section 5.
 * Think of a way to show in GUI
    Possible way: Grey out the sent msg until we receive a <received/>,
    but only if we know the other end supports XEP-0184.
 * Maybe implement section 6?
2008-06-07 19:47:19 +00:00
Jean-Marie Traissard
e487aa7802 Change the way to remember last message time in groupchat again. Save the time on
disconnection or exit. Previous version seemed perfect, but if server don't have the
same exact time than us (always), lots of messages can be logged twice. Here we will
lost log for messages that were sent beetween we lost connection and we see it. But that
seems better for me. For previous version, see [9516].
2008-06-05 11:18:33 +00:00
Yann Leboulanger
d1762dd9a0 improve new gmail e-mail popup window. Fixes #3252 2008-06-03 14:15:57 +00:00
Brendan Taylor
ccca9332c6 fix undefined 'session' variable in _messageCB 2008-06-03 01:13:30 +00:00
Brendan Taylor
dc89b61d37 fix lazy session binding to reuse sessions and pick them up from pending events 2008-06-02 23:26:40 +00:00
Yann Leboulanger
8f9c097343 [Yrogirg] configurable latex formulas font size. Fixes #3986 2008-06-02 08:10:36 +00:00
Jean-Marie Traissard
d927d260c2 Removing tic tac toe game. Maybe one day a full version in a plugin ? :) 2008-06-01 23:07:34 +00:00
Jean-Marie Traissard
9f613afd4f Don't traceback when refiltering during the model.clear (has a bad account name).
Fixes #3893.
2008-06-01 21:13:06 +00:00
tomk
cb2d629535 added prototype of BOSHClient class and script for usage example, removed import of common.gajim from transports_nb 2008-05-31 16:51:40 +00:00
Yann Leboulanger
1a683098e9 set publish_tune False by default 2008-05-31 08:28:33 +00:00
Yann Leboulanger
533e955cf1 make pep work, move config options per account, make publish_tune configurable in account context menu. fixes #3954 2008-05-30 21:43:53 +00:00
Stephan Erb
4b6fabadd9 Don't remove contacts from roster when they have pending events.
* update documentation and fix indentation
 * don't remove offline contacts from roster when we open the last pending, non chat message event
 * store account and jid per event
2008-05-30 17:42:53 +00:00
js
37b6f7058a [Kjell Braden] Fix OTR SMP. 2008-05-29 18:42:58 +00:00
Mateusz Biliński
45fe866240 Reduced too big indentation inside first try-catch (was 2 tabs, now it's 1 tab). 2008-05-28 16:15:39 +00:00
js
6c9063b702 [Kjell Braden] Fix HTML on OTR.
@bct: When moving the OTR stuff, you would've needed to adjust the
XHTML killing part. This patch fixes it. I didn't even notice since
I have XHTML disabled globally.
2008-05-27 14:50:54 +00:00
Yann Leboulanger
c127493e58 remove pep options from pref window, store them per account, store caps_hash per account. see #3954 2008-05-27 10:24:29 +00:00
Brendan Taylor
e09c93621e don't send termination unless we've sent a message
fixes #3963
2008-05-26 23:53:40 +00:00
Brendan Taylor
df5200b3bb try not to send session termination messages to non-XEP-0201 clients 2008-05-25 21:28:32 +00:00
Brendan Taylor
f7874d29c7 reuse chat controls after session termination
fixes #3950
2008-05-23 23:27:08 +00:00
Brendan Taylor
f68ffc3816 not every OTR message needs a session 2008-05-23 23:26:53 +00:00
Yann Leboulanger
21f332221e typos. see #3953 2008-05-20 14:30:19 +00:00
Yann Leboulanger
8bda3a5543 upadte all contact instances when we get a pep event for a contact. See #3953 2008-05-20 14:18:12 +00:00
Brendan Taylor
4feacc73ab moved OTR stuff from session.received to connection._messageCB
fixed lock icon when session has been terminated
2008-05-20 00:44:30 +00:00
Brendan Taylor
b0aeefcbb5 flush xmpppy's send queue before disconnecting 2008-05-19 20:04:14 +00:00
Brendan Taylor
368dd9fe66 missed part of that last patch 2008-05-19 18:30:04 +00:00
Brendan Taylor
f413a8a7e8 should fix zeroconf-related tb on exit 2008-05-19 18:27:45 +00:00
js
1cbe5678da * When we receive a plaintext, non-tagged message, don't append OTR
tag to outgoing messages anymore. Messages are not even passed to
  libotr anymore then.
* If we don't support OTR, strip OTR tags from the message before
  displaying it.
2008-05-19 17:41:51 +00:00
Brendan Taylor
fad6d2ef7e pass session when dispatching MSGNOTSENT 2008-05-19 00:17:39 +00:00
js
8a6615a5d0 Renable OTR. I found a way no messages will get lost, but it's more
or less a workaround. We never let libotr handle unencrypted messages
now and handle notifying the user about the message not being encrypted
ourself.
2008-05-18 19:11:13 +00:00
Brendan Taylor
e5fac7315e don't create sessions for pubsub and xep-0070 messages 2008-05-18 17:35:00 +00:00
Brendan Taylor
517d962221 fixed link-local messaging (broken by session-centric) and removed a ton of duplicated/unused code 2008-05-17 02:23:46 +00:00
js
75ad801f62 Fix music_track_info for multiple accounts. 2008-05-16 16:04:51 +00:00
js
96a5b497a8 * Remove old code to update status to current track.
* Don't bind the track listener when not enabled anymore.
* Remove the signal / add the signal when changed in preferences.
2008-05-15 19:52:04 +00:00
Stephan Erb
d41f245370 Remove debug print. 2008-05-14 18:45:06 +00:00
Yann Leboulanger
44fc7ddd0c fix caps hash computaion according to XEP-0115. fixes #3925 2008-05-14 18:30:39 +00:00
Brendan Taylor
2552e1024f fixed dropped messages after initiating a tic-tac-toe game with a contact that doesn't support sessions 2008-05-14 02:57:29 +00:00
Brendan Taylor
ade56853fe moved session.remove_events. fixes #3942 2008-05-14 00:34:02 +00:00
Brendan Taylor
d511b5afc4 merged in session-centric branch, with fixes for OTR compatibility 2008-05-13 01:59:10 +00:00
js
fc762157c0 * Disable OTRv1 by default.
* Don't send our JID on OTR request! It might reveal our JID in MUC!
2008-05-11 17:18:44 +00:00