1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug 2 hex constants in XenForo_Model_Conversation have the same value

Discussion in 'Resolved Bug Reports' started by Jake B., Nov 11, 2014.

  1. Jake B.

    Jake B. Well-Known Member

    Not sure if this is intended, but it seems that two of the hexadecimal constants in the Conversation model have the same value.

    Code:
    const FETCH_LAST_MESSAGE_AVATAR = 0x01;
    const FETCH_FIRST_MESSAGE = 0x02;
    const FETCH_RECEIVED_BY = 0x04;
    
    const FETCH_MESSAGE_SESSION_ACTIVITY = 0x01;
    
    FETCH_LAST_MESSAGE_AVATAR and FETCH_MESSAGE_SESSION_ACTIVITY both have the same value of 0x01
     
  2. Mike

    Mike XenForo Developer Staff Member

    This is expected. There are methods for fetching conversations and methods for fetching messages. The last line refers to message queries, the rest for conversation queries.
     
  3. Jake B.

    Jake B. Well-Known Member

    Ah, that makes sense. Didn't look into it too much, just saw that and it looked a bit odd.
     

Share This Page