Giter Club home page Giter Club logo

Comments (6)

cfanboy avatar cfanboy commented on September 21, 2024 1

Thanks for quickly responding. There is another issue with the 'subscribe' method, the last parameter can pass the SetParams to update the topic information, but I tried, it doesn't work, special for the 'me' topic.

tinode.subscribe("me", null, new SetParams(desc: new TopicDescription(public: _public))

I tried to fix it but unfortunately, I'm not strong to solve it. ^_^

from dart-sdk.

rxmoein avatar rxmoein commented on September 21, 2024

Thank you for opening this issue.
I will fix this problem and let you know after a few hours

from dart-sdk.

rxmoein avatar rxmoein commented on September 21, 2024

Please use version 1.0.0-alpha.3
It should work now

from dart-sdk.

cfanboy avatar cfanboy commented on September 21, 2024

I'm afraid the setMeta method still has an issue.

Continue to my update, I only passed the 'public' information rather than full, after called the 'processMetaDesc' in topic.dart line 351, it will throw the exception:

LateInitializationError: Field 'private' has not been initialized.

I tried to update the 'processMetaDesc' in topic.dart and topic-me.dart as below, it's work, but I'm not sure it's correct fix.

......
private = desc.private ?? new Map();
public = desc.public ?? new Map();
updated = desc.updated ?? DateTime.now()
......

from dart-sdk.

rxmoein avatar rxmoein commented on September 21, 2024

Right now I'm using this code and it works just OK:

await me.setMeta(SetParams(desc: TopicDescription(public: {'fn': 'cool'})));

Are you sure you are using the latest version?

from dart-sdk.

cfanboy avatar cfanboy commented on September 21, 2024

yup, I re-check the sdk.
Ok I will try it again.
Thanks

from dart-sdk.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.