Skip to content

Commit

Permalink
rref #5367
Browse files Browse the repository at this point in the history
rref #5366

ref #66
ref #65
  • Loading branch information
evrenesat committed Jul 22, 2016
1 parent da6cf4c commit efb956d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion zengine/messaging/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class Subscriber(Model):
is_visible = field.Boolean("Show under user's channel list", default=True)
can_manage = field.Boolean("Can manage this channel", default=False)
can_leave = field.Boolean("Membership is not obligatory", default=True)
last_seen_msg_time = field.DateTime("Last seen message's time")
last_seen_msg_time = field.TimeStamp("Last seen message's time")

# status = field.Integer("Status", choices=SUBSCRIPTION_STATUS)

Expand Down
4 changes: 3 additions & 1 deletion zengine/messaging/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ def report_last_seen_message(current):
Subscriber(current).objects.filter(channel_id=current.input['channel_key'],
user_id=current.user_id
).update(last_seen_msg_time=current.input['timestamp'])

current.output = {
'status': 'OK',
'code': 200}

def list_channels(current):
"""
Expand Down

0 comments on commit efb956d

Please sign in to comment.