roster.go
changeset 124 34e917ca6a11
parent 121 ebb86cbdd218
--- a/roster.go	Mon Sep 02 20:38:57 2013 -0700
+++ b/roster.go	Mon Sep 02 20:45:24 2013 -0700
@@ -138,9 +138,9 @@
 // Synchronously fetch this entity's roster from the server and cache
 // that information. The client can access the roster by watching for
 // RosterQuery objects or by calling Get().
-func (r *Roster) Update(client *Client) {
-	iq := &Iq{Header: Header{From: client.Jid.String(), Type: "get",
-		Id: NextId(), Nested: []interface{}{RosterQuery{}}}}
+func (r *Roster) Update() {
+	iq := &Iq{Header: Header{Type: "get", Id: NextId(),
+		Nested: []interface{}{RosterQuery{}}}}
 	waitchan := make(chan int)
 	done := func() {
 		close(waitchan)