[Florob] use new stop command in pep instead of retract when we temporary stop sending pep item. Fixes #4502
This commit is contained in:
parent
a3f6b82ae5
commit
27dfe571c4
|
@ -442,7 +442,7 @@ class ChangeActivityDialog:
|
||||||
self.subactivity,
|
self.subactivity,
|
||||||
self.entry.get_text().decode('utf-8'))
|
self.entry.get_text().decode('utf-8'))
|
||||||
else:
|
else:
|
||||||
pep.user_retract_activity(self.account)
|
pep.user_send_activity(self.account, '')
|
||||||
self.window.destroy()
|
self.window.destroy()
|
||||||
|
|
||||||
def on_cancel_button_clicked(self, widget):
|
def on_cancel_button_clicked(self, widget):
|
||||||
|
@ -529,7 +529,7 @@ class ChangeMoodDialog:
|
||||||
'''Return mood and messsage (None if no mood selected)'''
|
'''Return mood and messsage (None if no mood selected)'''
|
||||||
message = self.entry.get_text().decode('utf-8')
|
message = self.entry.get_text().decode('utf-8')
|
||||||
if self.mood is None:
|
if self.mood is None:
|
||||||
pep.user_retract_mood(self.account)
|
pep.user_send_mood(self.account, '')
|
||||||
else:
|
else:
|
||||||
pep.user_send_mood(self.account, self.mood, message)
|
pep.user_send_mood(self.account, self.mood, message)
|
||||||
self.window.destroy()
|
self.window.destroy()
|
||||||
|
|
Loading…
Reference in New Issue