Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Public Chats #35

Merged
merged 12 commits into from
Oct 15, 2019
Merged

Custom Public Chats #35

merged 12 commits into from
Oct 15, 2019

Conversation

Mikunj
Copy link

@Mikunj Mikunj commented Oct 11, 2019

No description provided.

@nielsandriesse
Copy link

nielsandriesse commented Oct 15, 2019

Migration failed for me

@nielsandriesse
Copy link

nielsandriesse commented Oct 15, 2019

And on clean install the app crashed when I hit the home screen

@@ -477,8 +477,12 @@
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize" />

<activity android:name="org.thoughtcrime.securesms.loki.NewConversationActivity"
android:windowSoftInputMode="stateAlwaysVisible"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize" />
android:windowSoftInputMode="stateAlwaysVisible"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Different indentation for each entry?

@@ -41,6 +41,10 @@
android:title="@string/activity_settings_show_qr_code_button_title"
android:icon="@drawable/icon_qr_code"/>

<Preference android:key="preference_category_public_chat"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Putting this in the settings menu is bad UX

@@ -71,7 +71,7 @@
private static final int lokiV2 = 23;
private static final int lokiV3 = 24;

private static final int DATABASE_VERSION = lokiV2; // Loki - onUpgrade(...) must be updated to use Loki version numbers if Signal makes any database changes
private static final int DATABASE_VERSION = lokiV3; // Loki - onUpgrade(...) must be updated to use Loki version numbers if Signal makes any database changes

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like I mentioned, migration didn't work for me

Copy link
Author

@Mikunj Mikunj Oct 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should work for others since we haven't released the beta on lokiV3, only us devs would have to reinstall an app from scratch

override fun onCreate(bundle: Bundle?, isReady: Boolean) {
supportActionBar!!.setTitle(R.string.fragment_add_public_chat_title)
supportActionBar!!.setDisplayHomeAsUpEnabled(true)
setContentView(R.layout.fragment_add_public_chat)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be activity_add_public_chat as you're not using a fragment

@nielsandriesse
Copy link

I fixed the crash and refactored the other stuff I commented on, but still to do is:

• Migration
• Deleting and re-adding a group doesn't work because deletion doesn't fully delete the group

@nielsandriesse nielsandriesse changed the title Custom Public Servers Custom Public Chats Oct 15, 2019
@nielsandriesse
Copy link

I'm merging this. We can fix the deleting and re-adding bug on dev :)

@nielsandriesse nielsandriesse merged commit e8e539c into dev Oct 15, 2019
@nielsandriesse nielsandriesse deleted the custom-server branch October 15, 2019 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants