Mercurial > libervia-backend
comparison src/memory/memory.py @ 1097:dace0ede919c
memory (memory): delete profile session on profile deletion
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 27 Jun 2014 20:05:31 +0200 |
parents | 594fbdda4a87 |
children | 96fb74a4714d |
comparison
equal
deleted
inserted
replaced
1096:77751f5b2242 | 1097:dace0ede919c |
---|---|
329 @param name: Name of the profile | 329 @param name: Name of the profile |
330 @param force: force the deletion even if the profile is connected. | 330 @param force: force the deletion even if the profile is connected. |
331 To be used for direct calls only (not through the bridge). | 331 To be used for direct calls only (not through the bridge). |
332 @return: a Deferred instance | 332 @return: a Deferred instance |
333 """ | 333 """ |
334 self.auth_sessions.profileDelUnique(name) | |
334 return self.params.asyncDeleteProfile(name, force) | 335 return self.params.asyncDeleteProfile(name, force) |
335 | 336 |
336 def addToHistory(self, from_jid, to_jid, message, type_='chat', extra=None, timestamp=None, profile=C.PROF_KEY_NONE): | 337 def addToHistory(self, from_jid, to_jid, message, type_='chat', extra=None, timestamp=None, profile=C.PROF_KEY_NONE): |
337 assert profile != C.PROF_KEY_NONE | 338 assert profile != C.PROF_KEY_NONE |
338 if extra is None: | 339 if extra is None: |