zhongxan / emite

Automatically exported from code.google.com/p/emite
0 stars 0 forks source link

emite-0.6.0-RC1: open room with HistoryOptions problem #329

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

When creating the room with history option:

Room room = roomManager.open(uri, historyOptions); 
- it not generated the corect precense, because in RoomChatManager class to 
store history property is used string key HISTORY_OPTIONS_PROP = 
"history.options" and it not the same as in RoomChat class used to retrieve 
option in open(): 

final HistoryOptions historyOptions = (HistoryOptions) 
properties.getData(HistoryOptions.KEY);

here HistoryOptions.KEY = "RoomHistoryOptions"

Solution: 
After changing in RoomChatManager class line:
private static final String HISTORY_OPTIONS_PROP = "history.options";
to
private static final String HISTORY_OPTIONS_PROP = HistoryOptions.KEY;
the problem is done.

Original issue reported on code.google.com by valdas.z...@gmail.com on 8 Oct 2010 at 9:33