#4965 HIGH Never A: friends should be subscribed to on XMPP

Zarro Boogs per Child bugtracker at laptop.org
Tue Nov 20 18:04:42 EST 2007


#4965: friends should be subscribed to on XMPP
-------------------------------+--------------------------------------------
  Reporter:  daf               |       Owner:  morgs         
      Type:  enhancement       |      Status:  new           
  Priority:  high              |   Milestone:  Never Assigned
 Component:  presence-service  |     Version:                
Resolution:                    |    Keywords:  Update.1?     
  Verified:  0                 |  
-------------------------------+--------------------------------------------

Comment(by daf):

 Untested patch applied.

 I think the correct approach is to have the shell service provide a D-Bus
 API for accessing the friends list, with signals for when friends are
 added and removed. However, I think this is too large a change for
 Update.1, so I've taken a simpler approach:

 * when connected to the server, read the friends file and synchronise it
 to the server
 * do the same thing every 10 minutes thereafter

 I'd like some feedback as to whether this approach sounds reasonable.

 The patch has some limitations:

 * it assumes that our friends are on the same server as us, which should
 hold for the time being
 * I don't think it handles being disconnected from the server properly

 Another option might be to use inotify to monitor the friends file, but
 that might be more complicated.

-- 
Ticket URL: <http://dev.laptop.org/ticket/4965#comment:7>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list