Improve conversation realtime refresh and heartbeat defaults
This commit is contained in:
@@ -591,13 +591,17 @@ public class MainActivity extends AppCompatActivity {
|
||||
}
|
||||
|
||||
private boolean shouldRefreshConversationsTab(BossRealtimeEvent event) {
|
||||
if (!hasProjectId(event)) {
|
||||
return false;
|
||||
if ("conversation.context_indicator.updated".equals(event.eventName)) {
|
||||
return true;
|
||||
}
|
||||
return "conversation.updated".equals(event.eventName)
|
||||
|| "project.messages.updated".equals(event.eventName)
|
||||
|| "master_agent.task.updated".equals(event.eventName)
|
||||
|| "conversation.context_indicator.updated".equals(event.eventName);
|
||||
if ("conversation.updated".equals(event.eventName)) {
|
||||
return hasProjectId(event) || hasDeviceId(event);
|
||||
}
|
||||
if ("project.messages.updated".equals(event.eventName)
|
||||
|| "master_agent.task.updated".equals(event.eventName)) {
|
||||
return hasProjectId(event);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean shouldRefreshDevicesTab(BossRealtimeEvent event) {
|
||||
|
||||
Reference in New Issue
Block a user