Commit 9e70822c authored by Leonardo Aramaki's avatar Leonardo Aramaki

Add broadcast values

parent 1ceb0a2d
...@@ -211,7 +211,8 @@ class ChatRoomsPresenter @Inject constructor( ...@@ -211,7 +211,8 @@ class ChatRoomsPresenter @Inject constructor(
userMentions = null, userMentions = null,
groupMentions = 0L, groupMentions = 0L,
lastMessage = null, lastMessage = null,
client = client client = client,
broadcast = false
) )
} }
} }
...@@ -244,7 +245,8 @@ class ChatRoomsPresenter @Inject constructor( ...@@ -244,7 +245,8 @@ class ChatRoomsPresenter @Inject constructor(
userMentions = null, userMentions = null,
groupMentions = 0L, groupMentions = 0L,
lastMessage = it.lastMessage, lastMessage = it.lastMessage,
client = client client = client,
broadcast = it.broadcast
) )
} }
} }
...@@ -335,7 +337,8 @@ class ChatRoomsPresenter @Inject constructor( ...@@ -335,7 +337,8 @@ class ChatRoomsPresenter @Inject constructor(
userMentions = it.userMentions, userMentions = it.userMentions,
groupMentions = it.groupMentions, groupMentions = it.groupMentions,
lastMessage = it.lastMessage, lastMessage = it.lastMessage,
client = client client = client,
broadcast = it.broadcast
) )
chatRoomsList.add(newRoom) chatRoomsList.add(newRoom)
} }
...@@ -478,7 +481,8 @@ class ChatRoomsPresenter @Inject constructor( ...@@ -478,7 +481,8 @@ class ChatRoomsPresenter @Inject constructor(
userMentions = userMentions, userMentions = userMentions,
groupMentions = groupMentions, groupMentions = groupMentions,
lastMessage = room.lastMessage, lastMessage = room.lastMessage,
client = client client = client,
broadcast = broadcast
) )
removeRoom(room.id, chatRooms) removeRoom(room.id, chatRooms)
chatRooms.add(newRoom) chatRooms.add(newRoom)
...@@ -517,7 +521,8 @@ class ChatRoomsPresenter @Inject constructor( ...@@ -517,7 +521,8 @@ class ChatRoomsPresenter @Inject constructor(
userMentions = subscription.userMentions, userMentions = subscription.userMentions,
groupMentions = subscription.groupMentions, groupMentions = subscription.groupMentions,
lastMessage = lastMessage, lastMessage = lastMessage,
client = client client = client,
broadcast = broadcast
) )
removeRoom(subscription.roomId, chatRooms) removeRoom(subscription.roomId, chatRooms)
chatRooms.add(newRoom) chatRooms.add(newRoom)
...@@ -591,7 +596,8 @@ class ChatRoomsPresenter @Inject constructor( ...@@ -591,7 +596,8 @@ class ChatRoomsPresenter @Inject constructor(
userMentions = it.userMentions, userMentions = it.userMentions,
groupMentions = it.groupMentions, groupMentions = it.groupMentions,
lastMessage = it.lastMessage, lastMessage = it.lastMessage,
client = client client = client,
broadcast = it.broadcast
) )
getChatRoomsInteractor.remove(currentServer, it) getChatRoomsInteractor.remove(currentServer, it)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment