Try this, this should loop through the last 100 messages and "null" them.
First find:
Then put this code in the scope of the if statement (under the previous code).Code:if(k == 2)
Code:for(int j1 = 0; j1 < 100; j1++) { chatMessages[j1] = null; }