• 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

Jake B.

Well-known member
#1
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
 

Mike

XenForo developer
Staff member
#2
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.
 

Jake B.

Well-known member
#3
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.
Ah, that makes sense. Didn't look into it too much, just saw that and it looked a bit odd.