Re: Source Code Improvement

  •  10-31-2004, 10:47 AM

    Re: Source Code Improvement

    Arsh:

       
     
        Thanks for you idea .
     
        I know what it means .
     
        Currently the CuteChat list the message by time .
     
        maybe is 'SELECT  * FROM CUTECHAT_MSGS WHERE DT>=@lastdt"
     
        Each user have their @lastdt , when the user update the messages , they get the message , and set the @lastdt to now .
        After a few seconds , they use the old @lastdt to fetch messages again .
     
        When you re-connect the room  , the @lastdt is set to min-value . so the last messages would be listed .
     
        CuteChat has a configuration property to control that.
     
        <cuteChat historytimeout="10"/> means , when you get in the room, you could see the last messages in 10 minutes .
        (default value is 30 , because more people need to know what the users are chatting in the room)
        if you set the historytimeout to 0 , you would get nothing .
     
    Regards , Terry .
View Complete Thread