Skip to content

Commit

Permalink
Update chatexchange_extension.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffschaller authored Nov 3, 2023
1 parent e57fbe5 commit b68bde4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chatexchange_extension.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# coding=utf-8
from chatexchange import client, events, rooms
import sys
from datetime import datetime
from datetime import datetime, timezone
from helpers import log


class Room(rooms.Room):
def watch_socket(self, event_callback):
self._client.last_activity = datetime.now(datetime.UTC)
self._client.last_activity = datetime.now(tz=timezone.utc)

def on_activity(activity):
self._client.last_activity = datetime.now(datetime.UTC)
self._client.last_activity = datetime.now(tz=timezone.utc)

for event in self._events_from_activity(activity, self.id):
if isinstance(event, events.MessageEdited):
Expand Down

0 comments on commit b68bde4

Please sign in to comment.