mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 13:39:22 -05:00
Make send_badge private
This commit is contained in:
parent
d213d69fe3
commit
2ae91a9e2f
@ -100,7 +100,7 @@ class HttpPusher(object):
|
|||||||
badge = yield push_tools.get_badge_count(
|
badge = yield push_tools.get_badge_count(
|
||||||
self.hs.get_datastore(), self.user_id
|
self.hs.get_datastore(), self.user_id
|
||||||
)
|
)
|
||||||
yield self.send_badge(badge)
|
yield self._send_badge(badge)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def on_timer(self):
|
def on_timer(self):
|
||||||
@ -294,7 +294,7 @@ class HttpPusher(object):
|
|||||||
defer.returnValue(rejected)
|
defer.returnValue(rejected)
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def send_badge(self, badge):
|
def _send_badge(self, badge):
|
||||||
logger.info("Sending updated badge count %d to %r", badge, self.user_id)
|
logger.info("Sending updated badge count %d to %r", badge, self.user_id)
|
||||||
d = {
|
d = {
|
||||||
'notification': {
|
'notification': {
|
||||||
|
Loading…
Reference in New Issue
Block a user