Private user

Private user   •   about 7 years ago

Channel & Message Questions

Hey Magnet Team,

I have several questions regarding channels and messages.

1) Is there any way to retrieve messages that were posted by a particular user?
2) Is there any way to delete created messages on a channel through the app?
3) I see some geo APIs such as updateGeoLocation() and a MMXGeoLocationMessage class but I don't see these being referenced elsewhere in the library, is there any examples of its usage?

Thanks!
Anthony

  • 4 comments

  • Manager   •   about 7 years ago

    Anthony,

    Answers:

    1) Is there any way to retrieve messages that were posted by a particular user?
    We don't currently have a way to retrieve messages that were posted by a particular user in the API right now. We are working on that functionality in a subsequent release.

    2) Is there any way to delete created messages on a channel through the app?

    You must be the creator of the channel to be allowed to delete the channel. With the API you can call the following:

    For Android it is: public void delete (OnFinishedListener listener)
    For iOS it is: – deleteWithSuccess:failure:

    3) I see some geo APIs such as updateGeoLocation() and a MMXGeoLocationMessage class but I don't see these being referenced elsewhere in the library, is there any examples of its usage?

    We are reworking the geolocation APIs to make them a lot more powerful. Right now, we would suggest that you simply pass the lat/long as part of the content and process from there.

    All great questions Anthony. Keep them coming!

  • Private user

    Private user   •   about 7 years ago

    Thanks Shannph!

    I'll take up your offer on keeping them coming. :-)

    Regarding question 2,
    2) Is there any way to delete created messages on a channel through the app?
    You must be the creator of the channel to be allowed to delete the channel. With the API you can call the following:
    For Android it is: public void delete (OnFinishedListener listener)
    For iOS it is: – deleteWithSuccess:failure:

    That method call only allows us to delete channels, but not messages, is that right?
    Is there any way to delete messages within a channel as well?

    Thanks!
    Anthony

  • Manager   •   about 7 years ago

    Anthony,

    Good to hear from you. :) Hope things are going well.

    Right now, we don't have a specific way to delete messages on a channel. We haven't really run into a use case where that would be desirable, but we'd be open to hearing about it. I believe that there are many situations where this is actually undesirable, but we're open to hearing about your idea in more detail.

    Cheers,

    Shannph

  • Private user

    Private user   •   about 7 years ago

    Thanks Shannph.

    The situation we're currently building our application around is:
    Public Forum – create a public forum or feed with publish/subscribe, so that users can openly interact with one another around a given topic.

    The use case we're encountering goes like so. Let's say in our public forum, many users are contributing by adding their messages. However, any user that is part of the forum has the ability to add whatever message they would like. Without some sort of filtering mechanism, users could post undesirable/unappropriate content to the forum.

    Having an intermediate stage where we hold users messages and only post them to the channel after being reviewed seems overly complicated and brings a lot of latency to what was once instantaneous.

    Assuming message content is genuine, and removing messages if not genuine, seems like a much better way to go. This way, simple requests to the server can remove inappropriate messages if flagged and there is no increased latency in having the channel update with new content.

    Although that scenario was for the forum situation, it can easily be extended to even one on one channels. Say two users are having a conversation and then one user says something that they don't want to be saved on the server forever, but also don't want to have the entire channel deleted. In that case, having the ability to delete a single message would be desirable.

    If I haven't convinced you, no worries, it's probably too specific of a use case. It was the backing of a "nice to have" feature but we can work around that. :-)

Comments are closed.