           console.warn "Could not find channel "+message.channel+" for message"
 
       when "channel_marked"
-        console.log "Channel marked: "+message
+        channel = @getChannelGroupOrDMByID message.channel
+        if channel
+          console.log "Moved cursor to "+message.ts+" in "+channel.name
+          channel.last_read = message.ts
+        else
+          console.warn "Could not find channel "+message.channel+" for channel_marked"
       when "user_typing"
         console.log "User is typing"
       else

    for k of @groups
      if @groups[k].name == name
        return @groups[k]

  #
  # Message handler callback and dispatch

        # find channel/group/dm and add it to history
        m = new Message @, message

        channel = @getChannelGroupOrDMByID message.channel
        if channel
          console.log "Adding message "+m.ts+" to "+channel.name
          channel.addMessage m
