Commit Graph

88 Commits

Author SHA1 Message Date
js 8605cd3f38 For historical reasons, we have a tab width of 3. This is strange, but
we have that in all files. To at least lesser the confusion a bit, add
vim tags for that.
Additionally, fix wrong #! in a few files.
2008-07-29 19:49:31 +00:00
Brendan Taylor 094052eb7c fix some issues with the difference between Contacts and GC_Contacts 2008-07-26 01:16:24 +00:00
Stephan Erb eda061e15d Don't crash when we receive contacts that have a group tag assigned multiple times.
Remove some usage of has_key() in the contacts module. It is a bit slower (method overhead) and will be deprecated soon.
In roster_window. make a small if-clause more pythonic.
2008-07-06 21:35:19 +00:00
Yann Leboulanger 2f857870f3 add caps_* arguments in create_contact 2008-07-05 19:16:04 +00:00
Yann Leboulanger 4c33f4d478 typo 2008-07-05 19:08:15 +00:00
Yann Leboulanger 74c53da32a fix arguments order in contacts.py, some coding standards. should fix #4081 2008-07-05 19:04:27 +00:00
Stephan Erb 0671e6c865 Correctly count metacontacts in non merged accounts mode if we have metacontacts over several accounts. 2008-07-05 06:33:49 +00:00
Stephan Erb 215fdc964a Count metacontacts only once.
Remove timing information for roster drawing.
2008-07-04 21:29:46 +00:00
Yann Leboulanger 2fd4ea7637 keep caps info when we create a contact instance from groupchat_contact instance 2008-07-03 21:43:28 +00:00
Stephan Erb 2cd24aa8ae Do not update metacontacts when nothing has changed. Fixes sending metacontact info to server when we expand a groupchat. 2008-06-26 14:09:27 +00:00
Yann Leboulanger ef0b115710 quick fix for private messages until we support caps for them. see #4033 2008-06-20 06:34:24 +00:00
js 9634f98250 * Implemented XEP-0184 section 5.
* Added NS_RECEIPTS to protocol namespace list.
* Show our support of XEP-0184 in caps.
* Added a big, fat warning to get_contact as this does not work as
  expected.
* There was some strangeness in our XEP-0022, it added an id tag to
  the x tag, which isn't mentioned anywhere in the XEP. And for some
  strange reason, that id even was the same all the time.
* Fixed a typo.
2008-06-17 16:03:21 +00:00
Stephan Erb c5f7922e29 Two roster sort fixes.
* Change metacontact ordering. Fallback to priority only if two contacts have the same show, not the other way round.
 * Move contacts that just signed out to the bottom of the group, not to the top.
2008-06-15 23:03:51 +00:00
Jean-Marie Traissard ca457a7ac2 groups :
-Use a method to get_shown_groups (possibly more work to do (special group attribute))
-Show contact only if contact.ask, not according to modified xep 0162 logic. (I don't get neither the xep
meaning, neither this modified logic, can you explain steve-e ?)
-Remove contact before we modify it req_sub(). Else we can't remove it because iter is not found.
-When removing a contact and we let him in see us (observer), manually set show to offline, so he is not set as
visible.
-Remove observer from observer group if we asked him auth (I mean before he answer). Xep 0162 say he is not an
observer then. Fix contact staying in observer group when we get auth later.
-Renaming groups seems fixed (it's an accident :p )

More work on group to follow
2008-06-15 21:48:13 +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
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
Yann Leboulanger a3827fe5d0 new XEP-0115 implementation (version 1.5) 2008-04-20 22:58:47 +00:00
Stephan Erb 4e6bd4ee8f Port roster_window to gtk.TreeModelFilter.
Contacts are now online hidden when they connect/reconnect and not completely removed/readded. Should come with a great speed improvement for people with big rosters.
There are still a few known problems but non that should dalay this patch any longer. Related bugs will be tracked with 'modelfilter' keyword.

See #1201
2008-04-20 14:01:04 +00:00
Yann Leboulanger f3665cd689 don't remove metacontact when we reconnect. fixes #3771 2008-04-01 23:13:10 +00:00
Jean-Marie Traissard 75983ff571 Some "jep" -> "xep" 2008-03-30 20:35:02 +00:00
Yann Leboulanger 13b6d75588 get gajim module where it is. fixes #3661 2008-01-06 12:12:24 +00:00
Yann Leboulanger 2aef21f026 [Elmar Hoffmann] prefer contacts on the same server as you in metacontacts. fixes #3649 2008-01-06 11:12:07 +00:00
Yann Leboulanger 19761f081f [js & I] show pep info in account tooltip, fix a bug in create_contact() 2007-12-13 20:26:13 +00:00
Yann Leboulanger a645006bf8 merge diff from trunk 2007-12-12 08:44:46 +00:00
Yann Leboulanger ea24ee82e5 merge diff from trunk to pep branch 2007-08-09 15:39:18 +00:00
Piotr Gaczkowski e3ef0821b3 Merge with trunk 2007-06-03 10:04:20 +00:00
Piotr Gaczkowski 19c5c70f80 Initial User Tune support 2007-04-01 09:02:04 +00:00
Piotr Gaczkowski 39f161fa6d Version changed 2007-03-29 20:24:30 +00:00
Piotr Gaczkowski 06f43c1e2a Mood and Activity shown in tooltips. Caps set properly 2007-03-29 19:40:50 +00:00
Piotr Gaczkowski 149b0fcdef Buggy. Don\'t touch 2007-03-29 19:04:14 +00:00
Piotr Gaczkowski 512db7618b Lame Mood and Activity support. Announcing caps. 2007-03-28 21:18:16 +00:00
Piotr Gaczkowski e0c9b6309f Third buggy commit 2007-03-25 22:47:04 +00:00
Yann Leboulanger 019f43fa38 when we compare 2 offline contacts, the one which has a status messages is shown above the one without. fixes #3010 2007-03-09 19:17:19 +00:00
Yann Leboulanger 9a3505a9e3 fix online / total transport count 2007-01-24 10:00:17 +00:00
Yann Leboulanger 7e11bf1172 do not count transport in global online / total users. fixes #2801 2006-12-26 13:40:01 +00:00
Yann Leboulanger e8657b4fdb do not count not in roster contacts in online / total users. see #2801 2006-12-26 13:33:09 +00:00
Yann Leboulanger e4a6d895ee do not count priority and if contact is a transport when computing metacontact score when contact is offline. fixes #2691 2006-11-21 22:27:35 +00:00
Yann Leboulanger 40d298c231 don't count our jid in number of contacts, count transport only if show_transports_group is True, update transports row when a transport connects / disconnects. fixes #1728 2006-11-15 15:56:42 +00:00
Yann Leboulanger f15305b7c6 [merzhin & asterix] show number of connecter / total contacts in account and group rows. fixes #1728 2006-11-15 10:44:27 +00:00
Yann Leboulanger ac7bc2a229 [Brice Maron] ability to remove a group (and eventually contacts in this group too). fixes #485 2006-11-13 08:27:16 +00:00
Yann Leboulanger fafa2d0c0a show our server in roster when we get a message from it, and hide it if show_transports_group is False. Fixes #2568 2006-10-17 12:31:16 +00:00
Yann Leboulanger 8a45a73226 show in roster not in roster contacts. also fixes a TB when receiving messages from not in roster contacts. 2006-10-16 21:37:32 +00:00
Nikos Kouremenos a1820a4ed5 fix logic for observers to work as XEP 0162 says 2006-10-15 13:23:05 +00:00
Yann Leboulanger 713d523344 fix wrong var name. fixes TBs 2006-10-10 17:25:26 +00:00
Jean-Marie Traissard 9f417b7396 syntax 2006-10-10 16:34:09 +00:00
Nikos Kouremenos a1102880b9 intro is_hidden_from_roster and is_observer 2006-10-10 15:57:20 +00:00
Nikos Kouremenos 9002b3d293 put my email (and jid), not one of my JIDs 2006-09-28 11:31:25 +00:00
Yann Leboulanger 97420e6a7a prevent TB when / in gc nicknames 2006-09-13 07:46:35 +00:00
Dimitur Kirov 335870646d take on account priorities, which are <= 0 2006-07-14 07:13:59 +00:00
Dimitur Kirov d8bf9f69a8 add two more possible statuses - #1945 2006-05-09 19:56:29 +00:00