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

Feature/fga/fix some voip issues #2830

Merged
merged 11 commits into from
Feb 17, 2021
Merged

Conversation

ganfra
Copy link
Member

@ganfra ganfra commented Feb 16, 2021

This PR should fix the crash on the timeline related to hidden tiles.
It also moves the PSTNProtocolCheck on the SDK side as it's bound to the current session.

@ganfra ganfra requested a review from bmarty February 16, 2021 15:36
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

A few static remarks

* As long as the request succeed, it'll check only once by session.
*/
@SessionScope
class PSTNProtocolChecker @Inject internal constructor(private val taskExecutor: TaskExecutor,
Copy link
Member

Choose a reason for hiding this comment

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

no interface to hide implementation?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes I can, but I try to remove interfaces when it's not really necessary as we already have a lots... Fields are private and constructor is internal

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I'd seen the internal constructor. OK, thanks!


private var alreadyChecked = AtomicBoolean(false)

private val pstnSupportListeners = emptyList<Listener>().toMutableList()
Copy link
Member

Choose a reason for hiding this comment

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

Use mutableListOf<Listener>()?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep thanks for the catch

Copy link
Member

Choose a reason for hiding this comment

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

I'll commit the cleanup

@EpoxyModelClass(layout = R.layout.item_empty)
abstract class EmptyItem : VectorEpoxyModel<EmptyItem.Holder>() {
class Holder : VectorEpoxyHolder()
interface IsEventItem {
Copy link
Member

Choose a reason for hiding this comment

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

What do you mean by IsEventItem?

Copy link
Member Author

@ganfra ganfra Feb 16, 2021

Choose a reason for hiding this comment

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

It's an item which holds one or several event ids. If you have a better name suggestion, because I wasn't inspired...

Copy link
Member

Choose a reason for hiding this comment

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

I propose ItemWithEvents

Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

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

LGTM after my 3 commits :)

@bmarty bmarty merged commit fd94536 into develop Feb 17, 2021
@bmarty bmarty deleted the feature/fga/fix_some_voip_issues branch February 17, 2021 18:01
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.

2 participants