|
|
|
@ -79,12 +79,12 @@ rosterRemove j sess = do |
|
|
|
sendIQA' timeout Nothing Set Nothing el [] session |
|
|
|
sendIQA' timeout Nothing Set Nothing el [] session |
|
|
|
|
|
|
|
|
|
|
|
-- | Retrieve the current Roster state (STM version) |
|
|
|
-- | Retrieve the current Roster state (STM version) |
|
|
|
getRoster' :: Session -> STM Roster |
|
|
|
getRosterSTM :: Session -> STM Roster |
|
|
|
getRoster' session = readTVar (rosterRef session) |
|
|
|
getRosterSTM session = readTVar (rosterRef session) |
|
|
|
|
|
|
|
|
|
|
|
-- | Retrieve the current Roster state |
|
|
|
-- | Retrieve the current Roster state |
|
|
|
getRoster :: Session -> IO Roster |
|
|
|
getRoster :: Session -> IO Roster |
|
|
|
getRoster session = atomically $ getRoster' session |
|
|
|
getRoster session = atomically $ getRosterSTM session |
|
|
|
|
|
|
|
|
|
|
|
-- | Get the initial roster or refresh the roster. You don't need to call this |
|
|
|
-- | Get the initial roster or refresh the roster. You don't need to call this |
|
|
|
-- on your own. |
|
|
|
-- on your own. |
|
|
|
|