no self-dialog pushmsg
This commit is contained in:
parent
c1cadfe2da
commit
0ea489b694
@ -179,6 +179,8 @@ class DBStorage(PushStorage):
|
|||||||
session.add(msg.sgn())
|
session.add(msg.sgn())
|
||||||
self.event(session, m, EVENT_PUSH)
|
self.event(session, m, EVENT_PUSH)
|
||||||
session.commit()
|
session.commit()
|
||||||
|
if m.sfrom == m.sto:
|
||||||
|
return
|
||||||
state = PushState.of(m.sto)
|
state = PushState.of(m.sto)
|
||||||
with state.lock:
|
with state.lock:
|
||||||
state.pushmsg = True
|
state.pushmsg = True
|
||||||
|
Loading…
Reference in New Issue
Block a user