setPinnedEvents method

Future<String> setPinnedEvents(
  1. List<String> pinnedEventIds
)

Call the SDN API to change the pinned events of this room.

Implementation

Future<String> setPinnedEvents(List<String> pinnedEventIds) =>
    client.setRoomStateWithKey(
      id,
      EventTypes.RoomPinnedEvents,
      '',
      {'pinned': pinnedEventIds},
    );