Commit 728616a9 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Default roomType to group

parent 37cf7a10
...@@ -5,6 +5,7 @@ import android.support.v4.app.Fragment ...@@ -5,6 +5,7 @@ import android.support.v4.app.Fragment
import android.support.v7.app.AppCompatActivity import android.support.v7.app.AppCompatActivity
import chat.rocket.android.R import chat.rocket.android.R
import chat.rocket.android.fragment.chatroom.list.RoomListFragment import chat.rocket.android.fragment.chatroom.list.RoomListFragment
import chat.rocket.core.models.Room
import kotlinx.android.synthetic.main.activity_room.* import kotlinx.android.synthetic.main.activity_room.*
class RoomActivity : AppCompatActivity() { class RoomActivity : AppCompatActivity() {
...@@ -20,7 +21,7 @@ class RoomActivity : AppCompatActivity() { ...@@ -20,7 +21,7 @@ class RoomActivity : AppCompatActivity() {
val extras = intent.extras val extras = intent.extras
val roomListFragment = RoomListFragment.newInstance(extras.getInt("actionId"), val roomListFragment = RoomListFragment.newInstance(extras.getInt("actionId"),
extras.getString("roomId"), extras.getString("roomId"),
extras.getString("roomType"), extras.getString("roomType", Room.TYPE_GROUP),
extras.getString("hostname"), extras.getString("hostname"),
extras.getString("token"), extras.getString("token"),
extras.getString("userId")) extras.getString("userId"))
......
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