Duplicated timestamps after dragging images

Eric's Avatar

Eric

09 Jan, 2009 12:29 AM

I've found that many times when I drag images into the Propane window, I get duplicated timestamps.

I have attached an example.

  1. 1 Posted by Eric on 09 Jan, 2009 01:12 AM

    Eric's Avatar

    http://skitch.com/lindvall/bywgi/duplicated-timestamps

  2. Support Staff 2 Posted by trevor on 09 Jan, 2009 01:14 AM

    trevor's Avatar

    Hey,

    this is an issue that I'm hoping 37signals will be able to advise me about (when time permits).

    The crux of the matter is the way that campfire actually sends messages in parallel. It's not something you'd be aware of unless you were an exceptionally fast typist.

    If you happen to be on a laggy network you can see it in action just by typing a-enter s-enter d-enter f-enter (and so-on) as fast as you possibly can. In your window the letters are in order, but if you refresh the chat you'll see that it actually got recorded out of order.

    The double-timestamp-for-annotated-images thing is related, and tends to happen if the room doesn't have a lot of activity: it's more likely that your particular message will be the one to trigger a timestamp.

    Campfire isn't expecting someone to be able to 'type' as fast as Propane does when it sends the image url and the annotation.

    The only bulletproof thing I can do is to only send the annotation once I get a response back for the sent image url. It's less than ideal because IMHO that will increase the chance that the image and the annotation will appear far apart in the transcript of a busy room.

    Another option may be available by changing the timestamp manager somewhat but that's where I'll need to seek advice from 37signals.

    So, it's on the radar and I'm looking for a good solution.

    Trev

  3. 3 Posted by Eric on 09 Jan, 2009 01:53 AM

    Eric's Avatar

    I believe this solves it nicely.

    I've tried to reproduce the bug with this fix and so far have been unable.

    cf_chat.css

    tr.timestamp_message + tr.timestamp_message {
      display: none ! important;
    }
    
  4. Support Staff 4 Posted by trevor on 09 Jan, 2009 05:10 PM

    trevor's Avatar

    You just made coffee spurt out my nose - yes Virginia, CSS can save the world!

    That certainly is a bulletproof way to handle the issue and it means I've got a better chance of keeping the image URL and the attribution close-together in the transcript.

    Thanks for your help here :-)

    Regards, Trev

  5. trevor closed this discussion on 16 Jan, 2010 09:54 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac