Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit bed4d9f

Browse files
committed
Add extra types to get_badge_count
1 parent 9732e86 commit bed4d9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

synapse/push/push_tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15-
1615
from synapse.push.presentable_names import calculate_room_name, name_from_member_event
1716
from synapse.storage import Storage
17+
from synapse.storage.databases.main import DataStore
1818

1919

20-
async def get_badge_count(store, user_id, group_by_room: bool):
20+
async def get_badge_count(store: DataStore, user_id: str, group_by_room: bool) -> int:
2121
invites = await store.get_invited_rooms_for_local_user(user_id)
2222
joins = await store.get_rooms_for_user(user_id)
2323

0 commit comments

Comments
 (0)